/* =========================
   Combined & Animated CSS
   ========================= */

/* =========================
   :root / Reset / Base
   ========================= */
:root {
  --bg: #f6f4f2;
  --card: #f2ede6;
  --muted: #ddd5cd;
  --text: #2e2e2e;
  --accent: #b5a697;
  --accent-dark: #7d4047;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: rgba(0, 0, 0, 0.06);
  --accent-shadow: rgba(125, 64, 47, 0.18);
  --radius: 14px;
  --container: 1200px;
  --gap: 24px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "PT Sans", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", serif;
  color: var(--accent-dark);
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: var(--accent-dark);
  text-align: center;
  margin-bottom: 18px;
}
.soc-icon i {
  font-size: 20px; /* можно подправить */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   Header
   ========================= */
.site-header {
  background: transparent;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(4px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  padding: 16px 0;
}

.site-logo {
  font-family: "Playfair Display", serif;
  color: var(--accent-dark);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
}

.logo-image {
  width: 250px;
  height: 250px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-menu {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-item {
  padding: 0 14px;
}

.nav-link {
  text-decoration: none;
  color: var(--accent-dark);
  font-weight: 500;
  font-size: 15px;
  padding: 10px 4px;
  border-radius: 8px;
  position: relative;
  transition: color 0.4s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--accent-dark);
  transition: width 0.6s ease;
}

.nav-link:hover::after,
.nav-link:focus::after {
  width: 100%;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
}

/* Mobile menu base */
.mobile-menu {
  display: none;
}

/* =========================
   Hero
   ========================= */
.hero {
  /* padding-top: 36px; */
  padding-top: 45px;
  padding-bottom: 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
}

.hero-text {
  max-width: 680px;
}

.main-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  margin: 0 0 8px;
  color: var(--accent-dark);
  line-height: 1.02;
  font-weight: 700;
}

.subtitle {
  font-size: 1rem;
  color: var(--accent-dark);
  margin-bottom: 18px;
  font-weight: 500;
}

.lead {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 22px;
}

/* =========================
   Buttons
   ========================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-family: "PT Sans", Arial, sans-serif;
  transition: 0.18s ease;
  border: 0;
  cursor: pointer;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px var(--accent-shadow);
}

.btn.primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px var(--accent-shadow);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.button-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.btn.outline {
  background: transparent;
  color: var(--accent-dark);
  border: 2px solid var(--muted);
  padding: 12px 22px;
  width: 160px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.see-more-btn {
  display: flex;
  flex-direction: row;
  gap: 5px;
}

/* =========================
   Hero media
   ========================= */
.hero-media {
  padding-top: 70px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.image-pair {
  display: flex;
  gap: 12px;
}

.image-pair img {
  width: 50%;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 4/5;
  min-height: 400px;
  box-shadow: 0 8px 24px var(--shadow);
}

.image-caption {
  font-family: "Pinyon Script", cursive;
  color: var(--accent-dark);
  font-size: clamp(2rem, 2.4vw, 2.4rem);
}

/* =========================
   Price Cards
   ========================= */
.price-section {
  background: transparent;
  /* margin: 80px 0; */
  padding: 165px 0;
}

.cards-wrapper {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
}

.price-card {
  width: min(520px, 100%);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 6px 20px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 0;
  transform: translateY(15px);
  transition:
    opacity 1.3s ease-out,
    transform 1.3s ease-out;
}

.price-card.active {
  opacity: 1;
  transform: translateY(0);
}

.card-title {
  font-size: 1.3rem;
  margin: 0;
  color: var(--accent-dark);
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card-list li {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.card-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--accent-dark);
  margin-top: auto;
  width: 100%;
  gap: 16px;
}

.card-footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-footer .btn.outline {
  flex-shrink: 0;
  margin: 0;
  width: auto;
}

.card-price {
  font-size: 1.05rem;
}

/* =========================
   Templates Section
   ========================= */
.templates-section {
  padding: 80px 0;
  background: var(--card);
}

.templates-categories {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.category-btn {
  padding: 14px 32px;
  font-size: 18px;
  border: none;
  cursor: pointer;
  background: var(--accent-dark);
  color: #fff;
  transition:
    background 0.3s,
    opacity 0.3s;
  border-radius: 30px !important;
}

.category-btn.active {
  background: var(--accent);
  transform: none !important;
  opacity: 1 !important;
}

.category-btn:hover {
  opacity: 0.8;
}

/* Templates grid */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
  gap: 60px;
}

.template-card {
  text-align: center;
  width: 100%;
  max-width: 220px;
}

.template-image {
  width: 100%;
  height: 450px;
  border-radius: 28px;
  margin-bottom: 20px;
}

.template-title {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  margin: 0px 0 5px;
  color: var(--accent-dark);
}

.template-price {
  font-size: 20px;
  color: var(--accent-dark);
  /* margin-bottom: 18px; */
}

/* Sale price styles */
.template-price.sale {
  margin-left: 7px !important;
  display: flex;
  gap: 12px;
  align-items: center;
}

.template-price.sale .old-price {
  text-decoration: line-through;
  color: var(#2e2e2e);
  font-weight: 500;
}

.template-btn {
  display: block;
  width: 100%;
  padding: 10px 0;
  color: var(--accent-dark);
  border: 1px solid var(--accent-dark);
  background: transparent;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s;
}

.template-btn:hover {
  background: var(--muted);
}

/* For Order Choose Template */
.chosen-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.chosen-image {
  width: 100%;
  max-width: 100px;
  height: auto;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  margin-bottom: 0;
}

.chosen-text {
  display: flex;
  flex-direction: column;
}

#chosen-template {
  margin: 0;
  font-size: 20px;
  color: var(--accent-dark);
}

.chosen-text p {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  color: var(--accent-dark);
}

/* =========================
   Workflow Section
   ========================= */
/* ===== Workflow Section Base ===== */
.workflow-section {
  padding: 80px 0;
  font-family: "Cormorant Garamond", serif;
  color: var(--accent-dark);
}

.workflow-title {
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 60px;
  font-weight: 400;
}

.workflow-carousel {
  position: relative;
  overflow: hidden;
}

.workflow-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.workflow-card {
  padding: 30px 36px;
  flex: 1 1 330px;
  max-width: 430px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--card);
  width: 100%;
  opacity: 0;
  transform: translateY(15px);
  transition:
    opacity 1.3s ease-out,
    transform 1.3s ease-out;
}

.workflow-card.long {
  flex: 1 1 700px;
  max-width: 900px;
}

.workflow-card.active {
  opacity: 1;
  transform: translateY(0);
}

.workflow-number {
  font-size: 26px;
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
}

.workflow-card-title {
  font-size: 24px;
  margin-bottom: 14px;
  font-weight: 400;
  line-height: 1.2;
}

.workflow-text {
  font-family: "PT Sans", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
}

/* Scroll hint hidden by default on desktop */
.scroll-hint {
  display: none;
}

/* =========================
   FAQ Section
   ========================= */
.faq-section {
  /* padding: 60px 0; */
  padding: 80px 0;
  font-family: "Cormorant Garamond", serif;
  color: var(--text);
}

.faq-title {
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 40px;
  font-weight: 400;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.faq-question {
  font-size: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.5s ease,
    opacity 0.5s ease;
  opacity: 0;
  margin-top: 12px;
  font-family: "PT Sans", sans-serif;
  font-size: 14px;
  color: var(--text);
  line-height: 1.45;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
  max-height: 500px;
  opacity: 1;
}

.icon {
  font-size: 22px;
  color: var(--accent);
  transition: transform 0.3s;
}

.faq-item.open .icon {
  transform: rotate(45deg);
}

/* =========================
   Order Section
   ========================= */
.order-section {
  padding: 80px 0;
  text-align: center;
  font-family: "PT Sans", sans-serif;
}

.order-section .logo-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
}

.order-container-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap; /* для мобильных */
}

.order-logo {
  font-size: 80px;
  color: var(--accent);
  font-family: "Cormorant Garamond", serif;
  margin-bottom: 20px;
}

.order-text {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 25px;
  max-width: 600px;
}

.order-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.order-btn {
  background: var(--accent);
  color: white;
  padding: 10px 60px;
  border-radius: 40px;
  border: none;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 30px;
  transition: opacity 0.3s;
}

.order-btn:hover {
  opacity: 0.8;
}

.order-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.soc-icon {
  background: var(--accent);
  color: white;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  font-size: 20px;
  transition: transform 0.3s;
}

.soc-icon:hover {
  transform: scale(1.1);
}

.order-copy {
  margin-top: 20px;
  color: var(--accent);
  font-size: 14px;
}

/* =========================
   Modal
   ========================= */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal input:focus,
.modal select:focus,
.modal textarea:focus {
  outline: none;
  border-color: var(--accent-dark);
}

.modal.open {
  display: flex !important;
}

.modal-content {
  background: var(--card);
  width: 700px;
  max-width: 90vw;
  padding: 40px;
  border-radius: var(--radius);
  position: relative;
  border: 1px solid var(--border);
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 26px;
  cursor: pointer;
  color: var(--accent-dark);
}

.order-form label {
  font-size: 15px;
  margin-top: 15px;
  display: block;
  color: var(--accent-dark);
}

.order-form input,
.order-form select,
.order-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  margin-top: 6px;
  font-size: 15px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 6px 0 12px;
}

.radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  cursor: pointer;
}

.radio-group input[type="radio"] {
  margin: 0;
}

label.agree {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  font-size: 14px;
  margin: 12px 0;
  color: var(--text);
  cursor: pointer;
}

label.agree input[type="checkbox"] {
  margin: 0;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.submit-btn {
  background: var(--accent);
  color: white;
  padding: 12px 20px;
  font-size: 17px;
  border: none;
  width: 100%;
  margin-top: 10px;
  cursor: pointer;
  border-radius: 8px;
}

.submit-btn:hover {
  opacity: 0.8;
}

/* =========================
   Footer
   ========================= */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 18px 0;
}

.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--accent-dark);
}

/* =========================
   Animations
   ========================= */
@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

@keyframes floatUpDown {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes fadeInSlow {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceRight {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(6px);
  }
}

/* General animations */
.fade-in {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 1s ease-out,
    transform 1s ease-out;
}
.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}
.breathe {
  animation: breathe 6s ease-in-out infinite alternate;
}
.float-up-down {
  animation: floatUpDown 5s ease-in-out infinite alternate;
}

/* =========================
   Mobile Styles (max-width: 900px)
   ========================= */
@media (max-width: 900px) {
  /* ===== Sections Paddings ===== */
  .hero {
    padding-top: 0px;
  }
  .price-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .templates-section {
    padding-top: 60px;
  }
  .workflow-section {
    padding-top: 60px;
    padding-bottom: 0px;
  }
  .faq-section {
    padding-top: 60px;
  }

  /* ===== 1. Header ===== */
  .site-header {
    border-bottom: none;
    padding: 12px 15px;
  }

  .site-logo {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--accent-dark);
    cursor: pointer;
  }

  .nav-menu {
    display: none;
  }

  .mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--card);
    border-top: 1px solid var(--border);
    box-shadow: 0 6px 18px var(--shadow);
    z-index: 1000;
  }

  .mobile-menu.active {
    display: block;
  }

  .mobile-menu-list {
    list-style: none;
    padding: 12px 0;
    margin: 0;
  }

  .mobile-menu-list li {
    border-bottom: 1px solid var(--border);
  }

  .mobile-menu-list li:last-child {
    border-bottom: none;
  }

  .mobile-nav-link {
    display: block;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 500;
    color: var(--accent-dark);
    text-decoration: none;
  }

  /* ===== 2. Hero ===== */

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-text {
    max-width: 100%;
    order: 1;
  }

  .main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 10px;
  }

  .subtitle {
    font-size: 1rem;
    margin-bottom: 15px;
  }

  .hero-media {
    padding-top: 0 !important;
    order: 2;
    width: 100%;
    overflow: hidden;
  }

  /* Image-pair row animation */
  .image-pair {
    display: flex; /* row layout */
    gap: 12px;
    overflow: hidden;
    animation: float-slow 6s ease-in-out infinite alternate;
  }

  .image-pair img {
    flex: 1 1 50%; /* each image takes 50% of row */
    min-height: 250px;
    border-radius: 16px;
    object-fit: cover; /* keep image ratio */
  }

  /* Keyframes for left-right floating effect */
  @keyframes float-slow {
    0% {
      transform: translateX(0);
    }
    50% {
      transform: translateX(-10px); /* shift left */
    }
    100% {
      transform: translateX(10px); /* shift right */
    }
  }

  /* ===== 3. Templates (2 per row) ===== */
  .templates-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .category-btn {
    padding: 10px;
    font-size: 14px;
    text-align: center;
  }

  .templates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* exactly 2 per row */
    gap: 20px;
    padding: 0 15px;
  }

  .template-card {
    max-width: 100%;
  }

  .template-image {
    height: 300px;
    width: 150px;
    margin-bottom: 5px;
  }

  .template-title {
    font-size: 18px;
  }

  .template-price {
    font-size: 16px;
  }

  .template-btn {
    font-size: 14px;
    padding: 8px 5px;
  }

  .chosen-info {
    flex-wrap: nowrap;
  }

  #chosen-template {
    font-size: 17px;
  }
  .chosen-text p {
    font-size: 15px;
  }
  /* ===== 4. Workflow Carousel ===== */
  .workflow-carousel.mobile-layout .workflow-grid {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    gap: 16px;
    padding-left: 16px;
    scroll-padding-left: 16px;
    width: 100vw !important;
    max-width: 100%;
    scroll-behavior: smooth;
  }

  .workflow-carousel.mobile-layout .workflow-card,
  .workflow-carousel.mobile-layout .workflow-card.long {
    flex: 0 0 80%;
    max-width: 80%;
    min-width: 220px;
    scroll-snap-align: start;
  }

  .workflow-carousel.mobile-layout .workflow-card:first-child {
    margin-left: 0;
  }

  .workflow-carousel.mobile-layout .scroll-hint {
    display: flex !important;
    position: absolute;
    bottom: 10px;
    right: 16px;
    font-size: 14px;
    color: var(--accent-dark);
    align-items: center;
    gap: 6px;
    pointer-events: none;
    z-index: 10;
  }

  .order-container-flex {
    flex-direction: column;
    justify-content: center;
    gap: 30px;
  }

  .order-logo {
    font-size: 52px;
    margin-bottom: 10px;
  }

  .order-text {
    font-size: 14px;
    max-width: 100%;
    margin-bottom: 20px;
    line-height: 1.5;
  }

  .order-btn {
    margin: 0;
  }
  .order-center {
    width: 100%;
  }

  .order-socials {
    gap: 16px;
  }

  .soc-icon {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .order-copy {
    font-size: 13px;
    margin-top: 12px;
  }

  /* ===== 6. FAQ ===== */
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .faq-title {
    font-size: 1.6rem;
    margin-bottom: 25px;
  }

  .faq-question {
    font-size: 17px;
  }

  /* ===== 7. Modal ===== */
  .modal-content {
    width: 90%;
    max-width: 350px;
    padding: 30px 20px;
    overflow-y: auto;
  }

  .radio-group {
    flex-direction: column;
    gap: 10px;
  }

  /* ===== 8. Price Cards ===== */
  .cards-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .price-card {
    width: 100%;
    max-width: 380px;
    padding: 20px;
  }
}
