/* ===== Variables ===== */
:root {
  --color-accent: #C5A07B;
  --color-accent-dark: #A8865E;
  --color-accent-light: #E8D5C0;
  --color-bg: #FFFFFF;
  --color-bg-warm: #F9F7F2;
  --color-bg-card: #F3F0EB;
  --color-text: #2C2C2C;
  --color-text-light: #7A7A7A;
  --color-border: #E0D8CE;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-accent: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, sans-serif;
  --container: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --transition: 0.3s ease;
}

/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ===== Utilities ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: 50px;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border: 2px solid var(--color-accent);
}

.btn--primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(197, 160, 123, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn--sm {
  padding: 10px 22px;
  font-size: 12px;
}

.btn--full {
  width: 100%;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.header--scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-text);
  flex-shrink: 0;
}

.logo--sm {
  font-size: 11px;
}

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

.nav__link {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--color-text-light);
  transition: color var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-text);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.header__cta {
  flex-shrink: 0;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition);
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero ===== */
.hero {
  padding: 120px 0 80px;
  background: var(--color-bg);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__title {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

.hero__title-main {
  font-family: var(--font-serif);
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--color-text);
}

.hero__title-accent {
  font-family: var(--font-accent);
  font-size: clamp(36px, 4.5vw, 56px);
  font-style: italic;
  font-weight: 400;
  color: var(--color-accent);
  line-height: 1.2;
  margin-top: -4px;
}

.hero__text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.hero__feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--color-text-light);
}

.hero__feature-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-bg-warm);
  color: var(--color-accent);
  flex-shrink: 0;
}

.hero__feature-icon svg {
  width: 18px;
  height: 18px;
}

.hero__image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow);
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}

.section__header {
  text-align: center;
  margin-bottom: 48px;
}

.section__label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 400;
  color: var(--color-text);
}

.section__action {
  text-align: center;
  margin-top: 48px;
}

/* ===== About ===== */
.about__text {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.about__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--color-text);
}

.about__stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.about__stat-icon svg {
  width: 32px;
  height: 32px;
}

/* ===== Projects ===== */
.projects {
  background: var(--color-bg-warm);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.project-card {
  cursor: pointer;
  transition: transform var(--transition);
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-card__image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card__image img {
  transform: scale(1.05);
}

.project-card__title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.project-card__desc {
  font-size: 12px;
  color: var(--color-text-light);
}

/* ===== How it works ===== */
.how-it-works {
  background: var(--color-bg);
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border) 10%, var(--color-border) 90%, transparent);
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--color-accent-light);
  background: var(--color-bg);
  color: var(--color-accent);
  transition: all var(--transition);
}

.step__icon svg {
  width: 28px;
  height: 28px;
}

.step:hover .step__icon {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  transform: scale(1.05);
}

.step__title {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step__text {
  font-size: 12px;
  color: var(--color-text-light);
  line-height: 1.5;
  padding: 0 8px;
}

/* ===== Pricing ===== */
.pricing {
  background: var(--color-bg-warm);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--color-border);
}

.product-card__image {
  background: var(--color-bg-card);
  border-radius: var(--radius-sm);
  aspect-ratio: 1;
  overflow: hidden;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__image img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.product-card__title {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.product-card__desc {
  font-size: 11px;
  color: var(--color-text-light);
  margin-bottom: 12px;
  line-height: 1.4;
}

.product-card__price {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-accent);
}

/* ===== Contacts ===== */
.contacts {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

.contacts__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(249, 247, 242, 0.92) 0%, rgba(249, 247, 242, 0.85) 50%, rgba(249, 247, 242, 0.95) 100%),
    url('images/contacts-bg.jpg') center/cover no-repeat;
  z-index: 0;
}

.contacts__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contacts__title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
}

.contacts__title-accent {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--color-accent);
}

.contacts__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.contacts__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--color-text);
}

.contacts__list svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.contacts__list a:hover {
  color: var(--color-accent);
}

/* ===== Contact Form ===== */
.contact-form {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form__field {
  margin-bottom: 16px;
}

.contact-form__field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--color-text-light);
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
  outline: none;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  border-color: var(--color-accent);
}

.contact-form__field textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form .btn {
  margin-top: 8px;
}

.contact-form__consent {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-text-light);
  text-align: center;
}

.contact-form__consent a {
  color: var(--color-accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

.contact-form__consent a:hover {
  color: var(--color-accent);
}

.contact-form__success {
  margin-top: 16px;
  padding: 12px;
  background: #E8F5E9;
  color: #2E7D32;
  border-radius: var(--radius-sm);
  font-size: 13px;
  text-align: center;
}

/* ===== Footer ===== */
.footer {
  padding: 32px 0 24px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

.footer__legal {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.footer__company {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-text);
  margin-bottom: 10px;
}

.footer__legal p {
  font-size: 11px;
  line-height: 1.7;
  color: var(--color-text-light);
  max-width: 900px;
  margin: 0 auto 4px;
}

.footer__legal p:last-child {
  margin-bottom: 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer__copy {
  font-size: 12px;
  color: var(--color-text-light);
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-size: 12px;
  color: var(--color-text-light);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--color-accent);
}

/* ===== Legal pages ===== */
.legal {
  padding: 120px 0 80px;
  background: var(--color-bg);
}

.legal__container {
  max-width: 800px;
}

.legal__header {
  text-align: center;
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-border);
}

.legal__title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 12px;
}

.legal__meta {
  font-size: 13px;
  color: var(--color-text-light);
}

.legal__content {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text);
}

.legal__section {
  margin-bottom: 40px;
}

.legal__section h2 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-accent-light);
}

.legal__section h3 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin: 20px 0 10px;
}

.legal__section p {
  margin-bottom: 12px;
  color: var(--color-text);
}

.legal__section p:last-child {
  margin-bottom: 0;
}

.legal__section a {
  color: var(--color-accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

.legal__section a:hover {
  color: var(--color-accent);
}

.legal__list {
  list-style: disc;
  padding-left: 24px;
  margin: 12px 0;
}

.legal__list li {
  margin-bottom: 8px;
  color: var(--color-text);
}

.legal__list li:last-child {
  margin-bottom: 0;
}

.legal__info-block {
  background: var(--color-bg-warm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: 12px;
}

.legal__info-block p {
  margin-bottom: 8px;
  font-size: 14px;
}

.legal__info-block p:last-child {
  margin-bottom: 0;
}

.legal__info-block a {
  color: var(--color-accent-dark);
}

@media (max-width: 768px) {
  .legal {
    padding: 100px 0 60px;
  }

  .legal__header {
    margin-bottom: 40px;
    padding-bottom: 28px;
  }

  .legal__section h2 {
    font-size: 18px;
  }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .projects__grid,
  .pricing__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .steps::before {
    display: none;
  }

  .about__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .burger {
    display: flex;
  }

  .header__cta {
    display: none;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__features {
    justify-content: center;
  }

  .hero__image {
    max-width: 400px;
    margin: 0 auto;
  }

  .projects__grid,
  .pricing__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

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

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__links {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .projects__grid,
  .pricing__grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 280px;
  }
}
