:root {
  --blue: #009de1;
  --navy: #003f6b;
  --green: #00715d;
  --orange: #ff7a00;
  --ink: #15171a;
  --text: #3f444d;
  --line: #d9dadb;
  --white: #fff;
  --container: 1360px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: "Quicksand", sans-serif; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
.container { width: min(var(--container), calc(100% - 80px)); margin-inline: auto; }
.section { padding-block: 100px; }
.eyebrow { margin: 0 0 8px; color: var(--blue); font-size: 18px; font-weight: 700; }
h1, h2, h3, p { margin-top: 0; }
h2 { margin-bottom: 16px; font-size: 42px; line-height: 1.4; }
.btn { display: inline-flex; width: fit-content; min-height: 52px; align-items: center; justify-content: center; gap: 12px; padding: 15px 32px; border: 0; border-radius: 999px; font-weight: 700; cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease; }
.btn:hover { transform: scale(1.04); }
.btn-dark { color: #fff; background: var(--navy); }
.btn-orange { color: #fff; background: var(--orange); }
.btn-outline { color: #fff; border: 1px solid #fff; background: transparent; }

.site-header { position: sticky; z-index: 100; top: 0; height: 81px; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.nav-wrap { height: 100%; display: flex; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); font-family: Inter, sans-serif; font-size: 24px; font-weight: 600; }
.brand b { color: var(--orange); }
.main-nav { margin-inline: auto; display: flex; align-items: center; gap: 40px; font-family: Inter, sans-serif; font-size: 16px; font-weight: 500; color: rgba(0,157,225,.72); }
.main-nav a { position: relative; transition: color .2s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--blue); }
.main-nav a.active::before { content: ""; position: absolute; width: 10px; height: 10px; top: -15px; left: 50%; border-top: 2px solid var(--orange); border-left: 2px solid var(--orange); transform: translateX(-50%) rotate(45deg); }
.nav-call { margin-left: 24px; }
.language-switcher { display: flex; align-items: center; gap: 3px; margin-left: 14px; padding: 4px; border: 1px solid rgba(0,157,225,.22); border-radius: 999px; background: #f4fbfe; box-shadow: 0 6px 18px rgba(0,63,107,.08); }
.language-option { min-width: 48px; height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 9px; border: 0; border-radius: 999px; background: transparent; color: var(--navy); font: 700 11px/1 Inter, sans-serif; letter-spacing: .04em; cursor: pointer; transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease; }
.language-option:hover { transform: translateY(-1px); background: rgba(0,157,225,.1); }
.language-option.active { color: #fff; background: var(--blue); box-shadow: 0 4px 12px rgba(0,157,225,.28); }
.language-flag { width: 24px; height: 16px; display: block; flex: 0 0 auto; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,31,59,.1); }
@media (max-width: 1350px) and (min-width: 901px) {
  .main-nav { gap: 14px; font-size: 13px; }
  .nav-call { margin-left: 12px; padding-inline: 18px; }
  .language-switcher { margin-left: 8px; }
  .language-option { min-width: 40px; padding-inline: 6px; }
}
.menu-toggle { display: none; width: 44px; height: 44px; margin-left: auto; padding: 10px; border: 0; background: transparent; }
.menu-toggle span { display: block; height: 2px; margin: 6px 0; background: var(--navy); transition: .25s; }

.hero { padding-top: 100px; padding-bottom: 100px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.096fr; align-items: center; }
.hero-copy { max-width: 646px; }
.hero-copy h1 { margin-bottom: 16px; font-size: clamp(46px, 4.45vw, 64px); line-height: 1; font-weight: 500; }
.hero-copy h1 span { color: var(--blue); }
.hero-copy p { max-width: 508px; margin-bottom: 30px; color: var(--text); line-height: 1.5; }
.hero-visual { position: relative; min-height: 583px; padding: 45px 57px 49px 52px; background: var(--navy); }
.hero-photo { width: 100%; height: 489px; object-fit: cover; }
.decor { position: absolute; }
.decor-top { top: 15px; right: 0; }
.decor-bottom { left: 30px; bottom: 15px; }

.about-grid { display: grid; grid-template-columns: 521px 1fr; gap: 80px; align-items: start; }
.about-grid > *, .mission-grid > *, .contact-grid > * { min-width: 0; }
.about-collage { position: relative; height: 531px; margin-left: 40px; }
.about-back { position: absolute; top: 3px; right: 0; width: 425px; height: 485px; object-fit: cover; }
.about-front { position: absolute; left: 0; bottom: 0; width: 297px; height: 358px; object-fit: cover; }
.about-decor { left: -55px; bottom: -36px; }
.about-copy { padding-top: 0; }
.about-copy h2 { max-width: 760px; font-size: 32px; }
.about-text { max-width: 720px; color: var(--text); line-height: 1.5; }
.about-text ol { padding-left: 24px; }
.about-copy .btn { margin-top: 40px; }

.mission-grid { display: grid; grid-template-columns: 484px 1fr; gap: 173px; align-items: center; }
.mission-intro > p:not(.eyebrow) { max-width: 414px; color: var(--text); line-height: 1.5; }
.mission-intro .btn { margin-top: 24px; }
.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.benefit { min-height: 185px; }
.benefit img { margin-bottom: 20px; }
.benefit h3 { margin-bottom: 16px; font-size: 20px; }
.benefit p { margin-bottom: 0; color: var(--text); line-height: 1.5; }

.products { position: relative; overflow: hidden; color: #fff; background: var(--navy); }
.section-head { margin: 0 80px 40px; display: flex; align-items: flex-start; justify-content: space-between; }
.section-head h2 { margin-bottom: 0; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 104px; }
.product-card { min-height: 478px; display: flex; flex-direction: column; padding: 16px; color: var(--ink); border: 1px solid var(--line); background: #fff; }
.product-image { height: 240px; display: grid; place-items: center; overflow: hidden; }
.product-image img { width: 262px; height: 190px; object-fit: contain; transition: transform .25s, translate .25s; }
.product-card:hover .product-image img { transform: scale(1.04); translate: 0 -5px; }
.product-body { display: flex; flex: 1; flex-direction: column; padding-top: 16px; }
.product-body h3 { margin-bottom: 12px; font-size: 24px; }
.product-body p { color: var(--text); line-height: 1.5; }
.product-body a { margin-top: auto; width: fit-content; color: var(--green); font-weight: 700; }
.products-decor { position: absolute; z-index: 2; }
.products-decor-left { left: -28px; top: 360px; }
.products-decor-right { right: -36px; bottom: 70px; }

.contacts { background: #faf9f5; }
.contact-grid { display: grid; grid-template-columns: 340px minmax(0, 729px); gap: 99px; justify-content: center; }
.contact-info h2 { margin-bottom: 28px; font-size: 42px; }
.contact-info address { display: flex; flex-direction: column; gap: 36px; font-style: normal; }
.contact-info address > * { display: flex; align-items: flex-start; gap: 14px; }
.contact-info address img { margin-top: 3px; }
.contact-info address span span { display: flex; flex-direction: column; gap: 4px; color: var(--text); }
.contact-info address b { color: var(--ink); font-size: 14px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 16px; color: var(--ink); border: 1px solid var(--line); outline: none; background: #fff; transition: border-color .2s, box-shadow .2s; }
.contact-form input { height: 52px; }
.contact-form textarea { min-height: 114px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,157,225,.1); }
.form-status { min-height: 24px; margin: -4px 0 0; color: var(--green); font-weight: 700; }

.site-footer { min-height: 156px; padding: 34px 40px 30px; color: #bfc1c4; background: #0d0e0f; }
.socials { display: flex; justify-content: center; gap: 20px; opacity: .75; }
.footer-line { margin-top: 32px; display: flex; align-items: center; justify-content: center; gap: 16px; font-size: 12px; }
.footer-line i { width: 1px; height: 18px; background: #777; }
.footer-brand { display: inline-flex; align-items: center; gap: 6px; font-family: Inter, sans-serif; font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1180px) {
  .container { width: min(100% - 48px, 1040px); }
  .main-nav { gap: 20px; font-size: 14px; }
  .nav-call { padding-inline: 22px; }
  .language-switcher { margin-left: 10px; }
  .language-option { min-width: 43px; padding-inline: 7px; }
  .hero-grid { gap: 40px; }
  .hero-visual { min-height: 480px; }
  .hero-photo { height: 390px; }
  .about-grid { grid-template-columns: 440px 1fr; gap: 54px; }
  .about-collage { margin-left: 0; transform: scale(.88); transform-origin: left top; }
  .mission-grid { grid-template-columns: 390px 1fr; gap: 80px; }
  .product-grid { gap: 32px; }
  .contact-grid { grid-template-columns: 300px 1fr; gap: 60px; }
}

@media (max-width: 900px) {
  .site-header { height: 72px; }
  .menu-toggle { display: block; order: 4; margin-left: 8px; }
  .language-switcher { order: 3; margin-left: auto; }
  .nav-call { display: none; }
  .main-nav { position: fixed; inset: 72px 0 auto; max-height: 0; overflow: hidden; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-inline: 24px; background: #fff; box-shadow: 0 18px 30px rgba(0,63,107,.12); transition: max-height .3s ease, padding .3s ease; }
  .main-nav.open { max-height: 520px; padding-block: 16px 24px; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid #eef1f3; }
  .main-nav a.active::before { display: none; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .hero-grid, .about-grid, .mission-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 56px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { max-width: 708px; width: 100%; margin-inline: auto; }
  .about-grid { gap: 64px; }
  .about-collage { width: 521px; max-width: 100%; margin-inline: auto; transform: none; }
  .about-copy { max-width: 760px; }
  .mission-grid { gap: 60px; }
  .mission-intro { max-width: 620px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card:last-child { grid-column: 1 / -1; width: calc(50% - 16px); justify-self: center; }
  .section-head { margin-inline: 0; }
  .contact-grid { max-width: 720px; }
  .footer-line { flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .language-switcher { gap: 2px; padding: 3px; }
  .language-option { min-width: 34px; height: 32px; padding-inline: 6px; }
  .language-code { display: none; }
  .container { width: calc(100% - 32px); }
  .section { padding-block: 72px; }
  .brand { font-size: 20px; }
  .brand img { width: 38px; height: auto; }
  h2 { font-size: 32px; line-height: 1.25; }
  .hero { padding-top: 56px; }
  .hero-copy h1 { font-size: 40px; line-height: 1.08; }
  .hero-visual { min-height: 340px; padding: 28px; }
  .hero-photo { height: 284px; }
  .decor { width: 64px; height: 64px; }
  .decor-top { top: 4px; }
  .decor-bottom { left: 5px; bottom: 5px; }
  .about-collage { height: 415px; }
  .about-collage { width: 100%; }
  .about-back { width: 76%; height: 380px; }
  .about-front { width: 56%; height: 280px; }
  .about-decor { left: -20px; bottom: -18px; }
  .about-copy h2 { font-size: 27px; }
  .about-copy .btn { margin-top: 24px; }
  .benefits, .product-grid { grid-template-columns: 1fr; }
  .benefit { min-height: 0; }
  .section-head { gap: 24px; flex-direction: column; }
  .product-card, .product-card:last-child { width: 100%; min-height: 460px; grid-column: auto; }
  .products-decor { width: 64px; height: 64px; }
  .contact-info h2 { font-size: 32px; }
  .site-footer { padding-inline: 20px; }
  .footer-line { flex-direction: column; text-align: center; }
  .footer-line i { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Inner pages */
.page-hero { padding: 92px 0; text-align: center; }
.page-hero h1 { margin-bottom: 8px; font-size: 56px; line-height: 1.4; }
.page-hero p { max-width: 600px; margin: 0 auto; color: var(--text); line-height: 1.5; }
.soft-bg { background: #fcfbf7; }
.about-story { display: grid; grid-template-columns: 528px 1fr; gap: 72px; align-items: center; }
.about-story .about-collage { margin: 0; }
.stats { margin-top: 34px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 50px; }
.stat strong { display: block; font-size: 32px; }
.stat span { color: #555; font-size: 18px; }
.team-title { text-align: center; }
.team-title span { color: var(--blue); font-size: 24px; font-weight: 600; }
.team-title h2 { margin-top: 4px; font-size: 48px; }
.team-grid { margin-top: 34px; display: grid; grid-template-columns: repeat(3, 277px); justify-content: space-around; gap: 42px; }
.team-card img { width: 277px; height: 326px; object-fit: cover; }
.team-card div { position: relative; z-index: 1; width: 257px; min-height: 129px; margin: -41px auto 0; padding: 10px 14px; color: #fff; text-align: center; background: var(--navy); }
.team-card h3 { margin-bottom: 7px; font-size: 21px; }
.team-card p { margin: 0; color: #d9dadb; }
.catalog-intro { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; }
.catalog-intro img { width: 100%; height: 370px; object-fit: cover; }
.catalog-intro h2 { font-size: 42px; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 52px 70px; }
.catalog-item { position: relative; min-width: 0; }
.catalog-thumb { height: 260px; display: grid; place-items: center; background: #fff; }
.catalog-thumb img { width: 240px; height: 230px; object-fit: contain; transition: translate .2s, transform .2s; }
.catalog-item:hover .catalog-thumb img { translate: 0 -6px; transform: scale(1.03); }
.favorite-btn { position: absolute; z-index: 2; top: 5px; right: 5px; width: 38px; height: 38px; border: 0; border-radius: 50%; color: var(--navy); background: #fff; cursor: pointer; font-size: 22px; }
.favorite-btn.active { color: #e84057; }
.catalog-item .price { margin: 14px 0 3px; color: var(--blue); font-weight: 700; }
.catalog-item h3 { margin-bottom: 14px; font-size: 18px; }
.catalog-actions { display: flex; align-items: center; gap: 10px; }
.mini-btn { padding: 9px 14px; border: 1px solid #b8d6e4; border-radius: 999px; color: var(--navy); background: #fff; cursor: pointer; font-weight: 700; }
.mini-btn.primary { color: #fff; border-color: var(--navy); background: var(--navy); }
.empty-state { grid-column: 1 / -1; padding: 80px 20px; text-align: center; border: 1px dashed var(--line); }
.empty-state h2 { font-size: 32px; }
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 56px; }
.cart-list { display: flex; flex-direction: column; gap: 18px; }
.cart-row { display: grid; grid-template-columns: 130px 1fr auto; gap: 22px; align-items: center; padding: 18px; border: 1px solid var(--line); }
.cart-row img { width: 130px; height: 120px; object-fit: contain; }
.cart-row h3 { margin-bottom: 6px; }
.remove-btn { border: 0; color: #a32235; background: transparent; cursor: pointer; }
.cart-summary { height: fit-content; padding: 30px; color: #fff; background: var(--navy); }
.cart-summary h2 { font-size: 28px; }
.cart-summary .total { display: flex; justify-content: space-between; margin: 30px 0; font-size: 22px; font-weight: 700; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card { padding: 34px; border: 1px solid var(--line); background: #fff; }
.service-card .number { color: var(--orange); font-size: 42px; font-weight: 700; }
.service-card h2 { font-size: 26px; }
.service-card p { color: var(--text); line-height: 1.6; }
.auth-wrap { min-height: calc(100vh - 237px); display: grid; place-items: center; padding: 80px 16px; background: #fcfbf7; }
.auth-card { width: min(480px, 100%); padding: 42px; background: #fff; border: 1px solid var(--line); }
.auth-card h1 { margin-bottom: 28px; font-size: 42px; }
.auth-card label { display: block; margin-bottom: 18px; }
.auth-card input { width: 100%; height: 52px; margin-top: 7px; padding: 14px 16px; border: 1px solid var(--line); }
.detail-grid { display: grid; grid-template-columns: 520px 1fr; gap: 80px; align-items: center; }
.detail-image { min-height: 520px; display: grid; place-items: center; background: #fcfbf7; }
.detail-image img { width: 430px; height: 430px; object-fit: contain; }
.detail-copy h1 { font-size: 56px; }
.detail-price { color: var(--blue); font-size: 26px; font-weight: 700; }
.detail-copy p { color: var(--text); line-height: 1.7; }

@media (max-width: 900px) {
  .about-story, .catalog-intro, .cart-layout, .detail-grid { grid-template-columns: 1fr; }
  .team-grid, .catalog-grid, .service-grid { grid-template-columns: repeat(2, 1fr); }
  .team-card, .team-card img { width: 100%; }
  .team-card div { width: calc(100% - 20px); }
  .detail-image { min-height: 420px; }
}

@media (max-width: 600px) {
  .page-hero { padding-block: 64px; }
  .page-hero h1 { font-size: 38px; }
  .stats, .team-grid, .catalog-grid, .service-grid { grid-template-columns: 1fr; }
  .catalog-intro img { height: 270px; }
  .cart-row { grid-template-columns: 90px 1fr; }
  .cart-row img { width: 90px; height: 90px; }
  .cart-row .remove-btn { grid-column: 2; justify-self: start; }
  .detail-image { min-height: 340px; }
  .detail-image img { width: 300px; height: 300px; }
  .detail-copy h1 { font-size: 40px; }
}
