:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --white: #ffffff;
  --text: #1f1d1a;
  --muted: #6f6a63;
  --line: rgba(31, 29, 26, 0.16);
  --dark: #211f1c;
  --accent: #a77b4f;
  --accent-dark: #805c38;
  --shadow: 0 14px 34px rgba(45, 39, 32, 0.14);
  --radius: 22px;
  --serif: 'Oranienbaum', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Oranienbaum', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--serif);
  background: var(--bg);
  line-height: 1.5;
}

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

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

button,
input {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 78px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.logo {
  font-family: var(--serif);
  letter-spacing: 0;
  font-size: 25px;
  font-weight: 400;
  line-height: 0.96;
  text-transform: uppercase;
}

.header-phone {
  font-weight: 400;
  letter-spacing: 0;
}

.header-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.header-phone:hover,
.main-nav a:hover,
.footer a:hover {
  color: var(--accent);
}

.main-nav {
  border-top: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  justify-content: center;
  gap: 34px;
  padding: 14px 0;
  color: var(--muted);
  font-size: 14px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 6px auto;
  background: var(--text);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
}

.hero-presentation {
  padding: 22px 0 0;
  background: #ffffff;
}

.hero-presentation-inner {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.hero-top-line {
  height: 2px;
  margin-bottom: 30px;
  background: #28241f;
}

.hero-title {
  max-width: 1088px;
  margin: 0 auto 32px;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(42px, 4.75vw, 62px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.018em;
  text-align: left;
  text-transform: uppercase;
}

.hero-title span {
  display: block;
}

.hero-title span:first-child {
  padding-left: 32px;
}

.hero-title-second {
  text-align: right;
  white-space: nowrap;
}

.hero-title em {
  display: inline-block;
  margin-left: 0.22em;
  font-style: normal;
  font-size: 0.55em;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  vertical-align: baseline;
  text-transform: none;
}

.hero-presentation-image {
  overflow: hidden;
  width: 100%;
  height: clamp(390px, 45vw, 575px);
  background: #ded7cf;
}

.hero-presentation-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.section-title-line {
  max-width: 720px;
  margin-bottom: 30px;
}

.section-title-line h2 {
  margin: 0 0 8px;
  font-size: clamp(34px, 4.1vw, 58px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.025em;
}

.section-title-line div {
  width: 100%;
  height: 1.5px;
  background: #2a2520;
}

.why {
  background: #ffffff;
}

.why-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 36%);
  gap: 24px;
  align-items: start;
}

.why-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.benefit-card {
  min-height: 118px;
  padding: 21px 22px 20px;
  border: 1px solid rgba(31, 29, 26, 0.06);
  border-radius: 10px;
  background: #f8f8f7;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.benefit-card:hover,
.format-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 46px rgba(45, 39, 32, 0.17);
}

.benefit-card h3 {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
}

.benefit-card p {
  margin-bottom: 0;
  color: #2f2b26;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.22;
}

.wide-card {
  grid-column: span 2;
}

.why-image {
  overflow: hidden;
  height: 506px;
  background: #e5e0da;
}

.why-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.payment-card {
  margin-top: 24px;
  min-height: 84px;
}

.cooperation {
  background: #ffffff;
}

.cooperation-panel {
  padding: 40px;
  border-radius: 0;
  background: #ffffff;
}

.cooperation-content h2 {
  margin: 4px 0 28px;
  font-family: var(--serif);
  font-size: clamp(38px, 4.6vw, 58px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.cooperation-subtitle {
  max-width: 820px;
  margin: 0 0 30px;
  color: #5f5850;
  font-size: 18px;
  line-height: 1.45;
}

.cooperation-photo {
  overflow: hidden;
  width: 100%;
  height: clamp(330px, 38vw, 560px);
  margin-bottom: 34px;
  border-radius: 10px;
  background: #ded9d2;
}

.cooperation-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.cooperation-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.format-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: 28px 24px;
  border: 1px solid rgba(31, 29, 26, 0.06);
  border-radius: 10px;
  background: #ffffff;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.format-pill {
  align-self: flex-start;
  margin-bottom: 34px;
  padding: 10px 18px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--dark);
  font-size: 13px;
  font-weight: 400;
}

.format-card h3 {
  min-height: 56px;
  margin-bottom: 14px;
  color: #2c2824;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.1;
}

.format-card p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.format-card ul {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.format-card li {
  position: relative;
  padding-right: 28px;
  color: #44403a;
  font-size: 15px;
  line-height: 1.25;
}

.format-card li span {
  position: absolute;
  top: 0;
  right: 0;
  color: rgba(31, 29, 26, 0.18);
  font-size: 11px;
  font-weight: 400;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--text);
  font-weight: 400;
}

.card-link::after {
  content: '↗';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform 0.22s ease;
}

.card-link:hover::after {
  transform: translate(2px, -2px);
}

.formats-note {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.contact {
  background: #ffffff;
}

.contact-form-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1fr);
  gap: 48px;
  align-items: start;
  padding: 46px;
  border: 1px solid rgba(31, 29, 26, 0.08);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 54px rgba(45, 39, 32, 0.10);
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact-form-head h2 {
  margin-bottom: 22px;
  font-size: clamp(34px, 4.8vw, 62px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.contact-form-head p:not(.eyebrow) {
  max-width: 570px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.lead-form {
  display: grid;
  gap: 16px;
}

.lead-form label {
  display: grid;
  gap: 8px;
}

.lead-form label span {
  color: var(--muted);
  font-size: 14px;
}

.lead-form input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.lead-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(167, 123, 79, 0.12);
}

.lead-form input.is-error {
  border-color: #b75d52;
  box-shadow: 0 0 0 4px rgba(183, 93, 82, 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 400;
  cursor: pointer;
  transition: transform 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: var(--dark);
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-light {
  color: var(--dark);
  background: var(--white);
}

.btn-light:hover {
  background: #ead9c7;
}

.full-btn {
  width: 100%;
  margin-top: 6px;
}

.privacy {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--accent-dark);
  font-weight: 400;
}

.footer {
  padding: 78px 0 28px;
  color: var(--white);
  background: var(--dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.6fr 0.9fr;
  gap: 54px;
}

.dark-eyebrow {
  color: #d8c1a7;
}

.footer h2 {
  max-width: 520px;
  margin-bottom: 28px;
  color: var(--white);
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.footer h3 {
  margin-bottom: 18px;
  color: #efe4d7;
}

.footer-links,
.footer-contacts {
  display: grid;
  align-content: start;
  gap: 10px;
  color: #d9d1c8;
}

.footer-contacts p {
  margin: 0;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.social-row a {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 62px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #bdb4ab;
  font-size: 14px;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 1080px) {
  .contact-form-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .why-image {
  overflow: hidden;
  height: 506px;
  background: #e5e0da;
}

  .cooperation-photo {
    height: 380px;
  }
}


@media (max-width: 760px) {
  .why-main-grid {
    grid-template-columns: 1fr;
  }

  .why-image {
    height: 340px;
  }
}

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr auto auto;
    min-height: 66px;
  }

  .header-tagline {
    display: none;
  }

  .header-phone {
    display: inline-flex;
    justify-self: center;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
  }

  .main-nav.is-open {
    display: block;
  }

  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 0 18px;
  }

  .nav-inner a {
    width: 100%;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-title {
  max-width: 1160px;
  margin: 0 auto 30px;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(34px, 4.35vw, 64px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-align: center;
  text-transform: uppercase;
}

  .hero-title-second {
  white-space: nowrap;
}

  .hero-title em {
  display: inline-block;
  margin-left: 0.18em;
  font-style: normal;
  font-size: 0.56em;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.015em;
  vertical-align: baseline;
  text-transform: none;
}

  .cooperation-cards {
    grid-template-columns: 1fr;
  }

  .format-card {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .section {
    padding: 58px 0;
  }

  .hero-presentation-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

  .hero-top-line {
  height: 2px;
  margin-bottom: 26px;
  background: #28241f;
}

  .hero-title {
  max-width: 1160px;
  margin: 0 auto 30px;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(34px, 4.35vw, 64px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-align: center;
  text-transform: uppercase;
}

  .hero-presentation-image {
  overflow: hidden;
  width: 100%;
  height: clamp(390px, 45vw, 575px);
  background: #ded7cf;
}

  .why-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

  .wide-card {
    grid-column: auto;
  }

  .section-title-line h2,
  .contact-form-head h2 {
    font-size: clamp(32px, 10vw, 46px);
  }

  .benefit-card p {
  margin-bottom: 0;
  color: #2f2b26;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.22;
}

  .cooperation-panel,
  .contact-form-panel {
    padding: 22px;
  }

  .cooperation-content h2 {
  margin: 4px 0 28px;
  font-family: var(--serif);
  font-size: clamp(38px, 4.6vw, 58px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

  .cooperation-subtitle {
    font-size: 16px;
  }

  .cooperation-photo {
    height: 300px;
    margin-bottom: 24px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 15px;
    letter-spacing: 0.1em;
  }

  .hero-presentation {
  padding: 22px 0 0;
  background: #ffffff;
}

  .hero-presentation-image {
  overflow: hidden;
  width: 100%;
  height: clamp(390px, 45vw, 575px);
  background: #ded7cf;
}

  .why-image {
  overflow: hidden;
  height: 506px;
  background: #e5e0da;
}

  .btn {
    width: 100%;
  }
}


/* финальные правки под презентацию */
.cooperation-subtitle { display: none; }
body, input, button, a { font-family: var(--serif); }
.logo, .header-phone, .header-tagline, .main-nav a { font-family: var(--serif); }
.why-image { border-radius: 0; height: 608px; }
.why-image img { object-fit: cover; object-position: center; }
.benefit-card h3, .format-card h3, .footer h3 { font-family: var(--serif); font-weight: 400; }
.benefit-card p, .format-card p, .format-card li, .formats-note, .contact-form-head p:not(.eyebrow), .lead-form label span, .privacy { font-family: var(--serif); }
.cooperation-photo { margin-top: 0; }

@media (max-width: 1080px) {
  .why-image { height: 506px; }
}

@media (max-width: 760px) {
  .why-image { height: auto; }
  .why-image img { height: auto; object-fit: contain; }
  .hero-title { font-size: clamp(32px, 9.8vw, 48px); }
  .hero-title span:first-child { padding-left: 0; }
  .hero-title-second { text-align: left; white-space: normal; }
}


/* правки: белый фон и заголовок форматов как в презентации */
body,
.hero-presentation,
.why,
.cooperation,
.cooperation-panel,
.contact {
  background: #ffffff;
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
}

.cooperation-content h2 {
  width: min(720px, 100%);
  margin: 0 0 30px;
}

.cooperation-content h2::after {
  content: '';
  display: block;
  width: 100%;
  height: 1.5px;
  margin-top: 8px;
  background: #2a2520;
}

/* правка слогана в шапке как в презентации */
.header-tagline {
  display: grid;
  justify-items: start;
  justify-self: end;
  width: 286px;
  margin: 0;
  color: #211f1c;
  font-family: var(--serif);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.02em;
  text-align: left;
  text-transform: uppercase;
}

.header-tagline span {
  display: block;
}

/* === Безопасное восстановление desktop после мобильных правок === */
@media (min-width: 761px) {
  .header-inner {
    min-height: 68px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
  }

  .header-phone {
    display: inline-flex;
    justify-self: center;
  }

  .header-tagline {
    display: grid;
    justify-items: start;
    justify-self: end;
  }

  .menu-toggle {
    display: none;
  }

  .main-nav {
    display: block;
  }

  .nav-inner {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 38px;
    padding: 14px 0 16px;
  }

  .nav-inner a {
    width: auto;
    padding: 0;
    border-bottom: 0;
  }

  .hero-title {
    max-width: 1088px;
    margin: 0 auto 32px;
    font-size: clamp(42px, 4.75vw, 62px);
    line-height: 0.9;
    letter-spacing: -0.018em;
    text-align: left;
  }

  .hero-title span:first-child {
    padding-left: 32px;
  }

  .hero-title-second {
    text-align: right;
    white-space: nowrap;
  }

  .hero-title em {
    display: inline-block;
    margin-left: 0.22em;
    font-size: 0.56em;
  }

  .why-main-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 36%);
  }

  .why-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wide-card {
    grid-column: span 2;
  }

  .why-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .cooperation-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .format-card {
    min-height: 430px;
  }
}

@media (min-width: 761px) and (max-width: 1080px) {
  .why-image {
    height: 506px;
  }
}

@media (min-width: 1081px) {
  .why-image {
    height: 608px;
  }
}

/* === Телефон: отдельно, не влияет на компьютер === */
@media (max-width: 760px) {
  html,
  body {
    overflow-x: hidden;
  }

  .container {
    width: min(100% - 30px, 1180px);
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    min-height: 84px;
    row-gap: 4px;
    padding: 10px 0;
  }

  .logo {
    grid-column: 1;
    grid-row: 1;
    font-size: 24px;
    letter-spacing: 0;
  }

  .header-tagline {
    display: none;
  }

  .header-phone {
    display: inline-flex;
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0;
  }

  .menu-toggle {
    display: block;
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .main-nav {
    display: none;
  }

  .main-nav.is-open {
    display: block;
  }

  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 0 16px;
  }

  .nav-inner a {
    width: 100%;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-presentation-inner {
    width: min(100% - 30px, 1280px);
  }

  .hero-title {
    max-width: 360px;
    margin: 0 auto 30px;
    font-size: clamp(38px, 11.5vw, 52px);
    line-height: 0.9;
    text-align: center;
  }

  .hero-title span:first-child {
    padding-left: 0;
  }

  .hero-title-second {
    text-align: center;
    white-space: normal;
  }

  .hero-title em {
    display: block;
    margin: 12px 0 0;
    font-size: 0.58em;
  }

  .hero-presentation-image {
    height: auto;
  }

  .hero-presentation-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .section-title-line h2,
  .cooperation-content h2,
  .contact-form-head h2 {
    font-size: clamp(34px, 10vw, 46px);
    line-height: 0.96;
  }

  .why-main-grid,
  .why-cards,
  .cooperation-cards,
  .contact-form-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .wide-card {
    grid-column: auto;
  }

  .benefit-card {
    min-height: auto;
  }

  .why-image {
    height: auto;
    margin-top: 20px;
  }

  .why-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .cooperation-panel,
  .contact-form-panel {
    padding: 22px;
  }

  .cooperation-photo {
    height: auto;
  }

  .cooperation-photo img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .format-card {
    min-height: auto;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .container,
  .hero-presentation-inner {
    width: min(100% - 24px, 1180px);
  }

  .logo {
    font-size: 23px;
  }

  .hero-title {
    max-width: 340px;
    font-size: clamp(36px, 10.8vw, 48px);
  }
}
