/* Albera — академия и салон красоты.
   Stage-1 layout, faithful to design.md tokens and the 1440/768/390 masters. */

:root {
  --ink: #111411;
  --paper: #F7F8F3;
  --lime: #B9F227;
  --mint: #EAF7C8;
  --deep-green: #31562A;
  --muted: #596158;
  --line: #CBD2C3;
  --white: #FFFFFF;
  --hero-sub: #DDE4D8;
  --quick-bg: #20251F;
  --quick-border: #455043;
  --nav-rule: #40463F;
  --contact-label-muted: #AEB9A8;
  --contact-address: #DCE5D7;
  --contact-rule: #3F493C;
  --quick-platforms: #CED7C8;
  --radius-card: 32px;
  --radius-card-mid: 28px;
  --gutter: 72px;
  --font-stack: Arial, "Helvetica Neue", Helvetica, "Liberation Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-stack);
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

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

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 0 0 12px 0;
}

.skip-link:focus {
  left: 0;
}

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

/* ---------- width variant switching ----------
   One copy variant per breakpoint: v-desk (>=1024), v-tab (640-1023), v-mob (<=639). */
.v-desk,
.v-tab,
.v-mob {
  display: none;
}

.v-tab {
  display: block;
}

@media (min-width: 1024px) {
  .v-tab,
  .v-mob {
    display: none;
  }

  .v-desk {
    display: block;
  }
}

@media (max-width: 639px) {
  .v-tab,
  .v-desk {
    display: none;
  }

  .v-mob {
    display: block;
  }
}

/* ---------- header ---------- */
.site-header {
  background: var(--ink);
  color: var(--white);
}

.header-row {
  max-width: 1296px;
  margin: 0 auto;
  padding: 26px var(--gutter) 0;
}

.header-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.brand-mark {
  width: 44px;
  height: 44px;
}

.brand-word {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--lime);
}

.header-address {
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
}

.desktop-nav {
  max-width: 1296px;
  margin: 0 auto;
  padding: 22px var(--gutter) 28px;
  display: flex;
  gap: 50px;
  border-bottom: 1px solid var(--nav-rule);
}

.desktop-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.desktop-nav a:hover {
  color: var(--lime);
}

.burger {
  display: none;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  min-width: 44px;
  min-height: 44px;
  padding: 6px 10px;
}

.burger-icon,
.burger-icon::before,
.burger-icon::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
}

.burger-icon {
  position: relative;
}

.burger-icon::before,
.burger-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger-icon::before {
  top: -6px;
}

.burger-icon::after {
  top: 6px;
}

.burger:hover .burger-icon,
.burger:hover .burger-icon::before,
.burger:hover .burger-icon::after {
  background: var(--lime);
}

.burger[aria-expanded="true"] .burger-icon {
  background: transparent;
}

.burger[aria-expanded="true"] .burger-icon::before {
  top: 0;
  transform: rotate(45deg);
  background: var(--lime);
}

.burger[aria-expanded="true"] .burger-icon::after {
  top: 0;
  transform: rotate(-45deg);
  background: var(--lime);
}

.mobile-menu {
  background: var(--ink);
  border-top: 1px solid var(--nav-rule);
  padding: 8px var(--gutter) 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  color: var(--white);
  font-size: 17px;
  font-weight: 500;
  padding: 12px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid var(--nav-rule);
}

.mobile-menu a:hover {
  color: var(--lime);
}

.menu-address {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--hero-sub);
}

.menu-phone {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 700;
}

.menu-phone a {
  border-bottom: 0;
  color: var(--lime);
  padding: 0;
}

/* ---------- hero ---------- */
.hero {
  background: var(--ink);
  color: var(--white);
  position: relative;
  height: 920px;
  overflow: hidden;
}

.hero-frame {
  position: relative;
  width: 100%;
}

.hero-inner {
  padding: 218px var(--gutter) 0;
}

.hero-label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--lime);
}

.hero-title {
  margin-top: 38px;
  font-size: 76px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0;
}

.hero-sub {
  margin-top: 28px;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--hero-sub);
  max-width: 560px;
}

.hero-actions {
  margin-top: 44px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  min-height: 44px;
  padding: 14px 32px;
  border: 1.5px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.05s ease;
}

.btn-primary {
  background: var(--lime);
  color: var(--ink);
}

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

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: inset 0 0 0 2px var(--ink);
}

.btn-secondary {
  background: none;
  border-color: var(--white);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--ink);
}

.btn:disabled {
  opacity: 0.45;
  box-shadow: none;
  cursor: not-allowed;
}

/* ---------- hero visual & quick contact ----------
   Strand geometry is taken verbatim from the masters: on desktop the flows
   rise from the hero base toward the CTA zone on the right; on tablet they
   span the hero width; on mobile they fill the area above the quick-contact
   card. */
.hero-visual {
  position: absolute;
  left: 785px;
  top: 228px;
  width: 534px;
  pointer-events: none;
}

.strands {
  width: 100%;
  height: auto;
}

.quick-contact {
  position: absolute;
  left: 960px;
  top: 612px;
  width: 320px;
  background: var(--quick-bg);
  border: 1px solid var(--quick-border);
  border-radius: 24px;
  padding: 24px 28px 26px;
}

.quick-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--lime);
}

.quick-phone {
  display: inline-block;
  margin-top: 12px;
  font-size: 27px;
  font-weight: 700;
  color: var(--white);
}

.quick-phone:hover {
  color: var(--lime);
}

.quick-platforms {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 400;
  color: var(--quick-platforms);
}

/* ---------- section scaffolding ---------- */
.section-title {
  font-size: 44px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--ink);
}

/* ---------- routes ---------- */
.routes {
  padding: 84px 0 96px;
  background: var(--paper);
}

.routes-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.route-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card-mid);
  padding: 36px 32px 32px;
  min-height: 350px;
  display: flex;
  flex-direction: column;
}

.route-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--deep-green);
}

.route-title {
  margin-top: 26px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--ink);
}

.route-sub {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--deep-green);
}

.route-body {
  margin-top: 24px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
}

.route-action {
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  min-height: 44px;
}

.route-action:hover {
  color: var(--deep-green);
}

.route-arrow {
  font-size: 24px;
  font-weight: 700;
  color: var(--deep-green);
}

/* ---------- programs ---------- */
.programs {
  background: var(--mint);
  padding: 84px 0 120px;
}

.programs-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.programs-tag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--deep-green);
  white-space: nowrap;
}

.programs-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.program-card {
  background: var(--paper);
  border-radius: 22px;
  padding: 32px 24px 28px;
  min-height: 196px;
  display: flex;
  flex-direction: column;
}

.program-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--deep-green);
}

.program-title {
  margin-top: 20px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--ink);
}

.program-sub {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
}

.program-more {
  margin-top: auto;
  padding-top: 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--deep-green);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.program-more:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ---------- why ---------- */
.why {
  padding: 72px 0 64px;
  background: var(--paper);
}

.why-sub {
  margin-top: 16px;
  font-size: 19px;
  font-weight: 400;
  color: var(--muted);
}

.why-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}

.why-rule {
  display: block;
  height: 2px;
  background: var(--ink);
  width: 100%;
}

.why-value {
  margin-top: 30px;
  font-size: 42px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--ink);
}

.why-label {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
}

/* ---------- contacts ---------- */
.contacts-wrap {
  background: var(--paper);
  padding: 64px 0 96px;
}

.contact-card {
  position: relative;
  background: var(--ink);
  border-radius: var(--radius-card);
  padding: 42px;
  color: var(--white);
  min-height: 390px;
}

.contact-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--lime);
}

.contact-title {
  margin-top: 24px;
  font-size: 42px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--white);
}

.contact-address {
  margin-top: 16px;
  font-size: 19px;
  font-weight: 400;
  color: var(--contact-address);
  max-width: 480px;
}

.contact-phones-desk {
  margin-top: 48px;
  display: flex;
  gap: 100px;
}

.contact-item-label {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--contact-label-muted);
}

.contact-phone {
  display: inline-block;
  margin-top: 6px;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
}

.contact-phone:hover {
  color: var(--lime);
}

.contact-phones-tab,
.contact-phones-mob {
  display: none;
}

.contact-line {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.contact-line a {
  color: var(--white);
}

.contact-line a:hover {
  color: var(--lime);
}

.contact-route {
  position: absolute;
  right: 68px;
  top: 120px;
  font-size: 17px;
  padding: 16px 40px;
}

.contact-sep {
  position: absolute;
  left: 42px;
  right: 42px;
  bottom: 78px;
  height: 1px;
  background: var(--contact-rule);
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--paper);
  padding: 0 0 40px;
}

.footer-copy {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--muted);
}

/* ================= tablet ================= */
@media (max-width: 1023px) {
  :root {
    --gutter: 40px;
  }

  body {
    font-size: 16px;
  }

  .header-address,
  .desktop-nav {
    display: none;
  }

  .burger {
    display: inline-flex;
  }

  .hero {
    height: 900px;
  }

  .hero-inner {
    padding: 168px var(--gutter) 0;
  }

  .hero-label {
    font-size: 13px;
    letter-spacing: 1.5px;
  }

  .hero-title {
    margin-top: 30px;
    font-size: 58px;
  }

  .hero-sub {
    margin-top: 20px;
    font-size: 20px;
    max-width: 460px;
  }

  .hero-actions {
    margin-top: 30px;
  }

  .btn {
    font-size: 17px;
    padding: 13px 28px;
  }

  .hero-visual {
    left: 327px;
    top: 448px;
    width: 375px;
  }

  .quick-contact {
    left: 40px;
    top: 714px;
    width: 688px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-radius: 20px;
    padding: 20px 24px;
    flex-wrap: wrap;
  }

  .quick-phone {
    margin-top: 0;
    font-size: 25px;
  }

  .quick-label {
    font-size: 11px;
  }

  .quick-platforms {
    margin-top: 0;
    margin-left: auto;
    font-size: 14px;
    font-weight: 500;
  }

  .section-title {
    font-size: 39px;
  }

  .routes {
    padding: 72px 0 80px;
  }

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

  .route-card {
    min-height: 232px;
    padding: 32px 26px 26px;
  }

  .route-num {
    font-size: 12px;
  }

  .route-title {
    margin-top: 22px;
    font-size: 27px;
  }

  .route-sub {
    margin-top: 10px;
    font-size: 17px;
  }

  .route-body {
    margin-top: 18px;
    font-size: 16px;
  }

  .route-action {
    font-size: 15px;
  }

  .programs {
    padding: 72px 0 88px;
  }

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

  .program-card {
    min-height: 192px;
    padding: 30px 22px 26px;
  }

  .program-num {
    font-size: 11px;
  }

  .program-title {
    margin-top: 18px;
    font-size: 21px;
  }

  .program-sub {
    font-size: 14px;
  }

  .program-more {
    font-size: 14px;
  }

  .why {
    padding: 64px 0 56px;
  }

  .why-grid {
    gap: 28px;
  }

  .why-value {
    margin-top: 24px;
    font-size: 31px;
  }

  .why-label {
    font-size: 14px;
  }

  .contacts-wrap {
    padding: 56px 0 80px;
  }

  .contact-card {
    padding: 34px 30px;
    min-height: 400px;
    border-radius: var(--radius-card-mid);
  }

  .contact-label {
    font-size: 12px;
    letter-spacing: 1.3px;
  }

  .contact-title {
    margin-top: 20px;
    font-size: 36px;
  }

  .contact-address {
    margin-top: 12px;
    font-size: 17px;
  }

  .contact-phones-desk,
  .contact-sep {
    display: none;
  }

  .contact-phones-tab {
    display: block;
    margin-top: 36px;
  }

  .contact-phones-tab .contact-line:first-child {
    margin-top: 0;
  }

  .contact-line {
    font-size: 19px;
  }

  .contact-route {
    position: static;
    margin-top: 32px;
    font-size: 16px;
    padding: 14px 30px;
  }

  .footer-copy {
    font-size: 12px;
  }
}

/* ================= mobile ================= */
@media (max-width: 639px) {
  :root {
    --gutter: 20px;
  }

  .header-row {
    padding-top: 18px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-word {
    font-size: 21px;
  }

  .burger {
    font-size: 12px;
  }

  .hero {
    height: 930px;
  }

  .hero-inner {
    padding: 60px var(--gutter) 0;
  }

  .hero-label {
    font-size: 11px;
    letter-spacing: 1px;
  }

  .hero-title {
    margin-top: 26px;
    font-size: 43px;
  }

  .hero-sub {
    margin-top: 18px;
    font-size: 17px;
  }

  .hero-actions {
    margin-top: 26px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
  }

  .hero-visual {
    left: 48px;
    top: 536px;
    width: 301px;
  }

  .quick-contact {
    left: 20px;
    top: 758px;
    width: 350px;
    border-radius: 18px;
    padding: 20px 18px 18px;
    flex-wrap: wrap;
  }

  .quick-label {
    font-size: 10px;
  }

  .quick-phone {
    font-size: 22px;
  }

  .quick-platforms {
    font-size: 12px;
    width: 100%;
    margin-top: 6px;
    margin-left: 0;
  }

  .section-title {
    font-size: 33px;
  }

  .routes {
    padding: 56px 0 64px;
  }

  .routes-grid {
    margin-top: 40px;
    gap: 20px;
  }

  .route-card {
    min-height: 252px;
    padding: 30px 22px 24px;
  }

  .route-num {
    font-size: 11px;
  }

  .route-title {
    margin-top: 20px;
    font-size: 22px;
  }

  .route-sub {
    margin-top: 10px;
    font-size: 15px;
  }

  .route-body {
    margin-top: 16px;
    font-size: 15px;
  }

  .route-action {
    font-size: 14px;
  }

  .route-arrow {
    font-size: 20px;
  }

  .programs {
    padding: 56px 0 72px;
  }

  .programs-grid {
    margin-top: 40px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .program-card {
    min-height: 188px;
    padding: 30px 20px 24px;
  }

  .program-num {
    font-size: 10px;
  }

  .program-title {
    margin-top: 18px;
    font-size: 21px;
  }

  .program-sub {
    font-size: 15px;
  }

  .program-more {
    font-size: 14px;
  }

  .why {
    padding: 56px 0 48px;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .why-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
  }

  .why-value {
    margin-top: 16px;
    font-size: 30px;
    white-space: nowrap;
  }

  .why-label {
    margin-top: 0;
    font-size: 15px;
    font-weight: 500;
  }

  .contacts-wrap {
    padding: 48px 0 56px;
  }

  .contact-card {
    padding: 28px 24px;
    min-height: 370px;
  }

  .contact-label {
    font-size: 11px;
    letter-spacing: 1.2px;
  }

  .contact-title {
    margin-top: 18px;
    font-size: 31px;
  }

  .contact-address {
    margin-top: 10px;
    font-size: 16px;
  }

  .contact-phones-tab {
    display: none;
  }

  .contact-phones-mob {
    display: block;
    margin-top: 30px;
  }

  .contact-phone {
    font-size: 19px;
  }

  .contact-line {
    font-size: 16px;
  }

  .contact-route {
    margin-top: 24px;
    width: 100%;
    font-size: 15px;
    padding: 13px 20px;
  }

  .footer-copy {
    font-size: 12px;
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  a {
    transition: none;
  }
}
