/* =========================================
   JolTap — pixel-faithful recreation
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

/* ── Tokens ── */
:root {
  --bg:        #f0f2f9;          /* lavender-white page bg */
  --white:     #ffffff;
  --purple:    #6B7FD4;          /* phone/accent purple */
  --purple-dark: #5162b8;
  --gold:      #D4A017;          /* heading gold */
  --gold-btn:  #F0B429;          /* button / badge gold */
  --blue-link: #5162b8;          /* "without difficulties" / "disabilities" */
  --blue-link2:#6B7FD4;
  --red-sos:   #E53935;
  --text:      #1a1a1a;
  --text-mid:  #444;
  --text-muted:#888;
  --card-shadow: 0 4px 32px rgba(100,110,180,0.10);
  --font: 'Inter', sans-serif;
  --max: 1200px;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{font-family:var(--font);background:var(--bg);color:var(--text);line-height:1.5;-webkit-font-smoothing:antialiased;overflow-x:hidden;}
a{text-decoration:none;color:inherit;}
img{display:block;max-width:100%;}

.container{max-width:var(--max);margin:0 auto;padding:0 clamp(16px,4vw,48px);}

/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
.nav{
  position:fixed;top:0;left:0;right:0;z-index:200;
  background:rgba(240,242,249,0.90);
  backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(107,127,212,0.10);
}
.nav__inner{
  display:flex;align-items:center;justify-content:space-between;
  height:60px;
}
.nav__logo{
  display:flex;align-items:center;gap:10px;
  font-size:1.05rem;font-weight:700;color:var(--text);
}
.nav__logo-icon{
  width:32px;height:32px;
  background:var(--gold-btn);
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
}
/* pin SVG */
.nav__logo-icon svg{width:18px;height:18px;fill:#fff;}
.nav__links{list-style:none;display:flex;gap:40px;}
.nav__links a{font-size:0.9rem;font-weight:500;color:var(--text-mid);}
.nav__links a:hover{color:var(--purple);}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero{
  min-height:100vh;
  display:flex;align-items:center;
  padding:80px 0 40px;
  background:linear-gradient(130deg,#fff 0%,#eef0fa 100%);
  position:relative;overflow:hidden;
}
.hero::after{
  content:'';
  position:absolute;
  right:-60px;top:50%;
  transform:translateY(-55%);
  width:520px;height:520px;
  background:radial-gradient(circle,rgba(107,127,212,0.18) 0%,transparent 65%);
  pointer-events:none;
}
.hero__inner{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;align-items:center;
  position:relative;z-index:1;
}
.hero__headline{
  font-size:clamp(2.8rem,5.5vw,4.2rem);
  font-weight:900;
  line-height:1.08;
  letter-spacing:-0.02em;
  margin-bottom:24px;
  color:var(--text);
}
.hero__sub{
  font-size:1rem;color:var(--text-mid);
  max-width:400px;margin-bottom:36px;line-height:1.65;
}
.hero__sub strong{color:var(--text);font-weight:700;}
.btn-learn{
  display:inline-flex;align-items:center;gap:10px;
  background:var(--gold-btn);
  color:#fff;
  padding:12px 24px 12px 16px;
  border-radius:100px;
  font-size:0.82rem;font-weight:700;
  letter-spacing:0.06em;text-transform:uppercase;
  box-shadow:0 4px 18px rgba(240,180,41,0.35);
  transition:box-shadow 0.2s;
}
.btn-learn:hover{box-shadow:0 6px 24px rgba(240,180,41,0.5);}
.btn-learn__circle{
  width:28px;height:28px;border-radius:50%;
  background:rgba(255,255,255,0.25);
  display:flex;align-items:center;justify-content:center;
}
.btn-learn__circle svg{width:14px;height:14px;fill:#fff;}

/* Hero phone */
.hero__phone-wrap{
  display:flex;justify-content:flex-end;align-items:center;
}
.hero-phone{
  width:300px;
  aspect-ratio: 9 / 18;
  background:linear-gradient(155deg,#4b4b4d 0%,#232325 22%,#141416 55%,#0a0a0b 100%);
  border-radius:54px;
  padding:12px;
  box-shadow:0 40px 80px rgba(50,60,120,0.25), inset 0 0 0 2px rgba(255,255,255,0.08);
  position:relative;
  display: flex;
  flex-direction: column;
}
/* volume buttons */
.hero-phone::before{
  content:'';
  position:absolute;left:-3px;top:19%;
  width:3px;height:9%;
  background:#0a0a0b;border-radius:2px 0 0 2px;
}
/* power button */
.hero-phone::after{
  content:'';
  position:absolute;right:-3px;top:24%;
  width:3px;height:14%;
  background:#0a0a0b;border-radius:0 2px 2px 0;
}
.hero-phone__notch{
  position:absolute;
  top:16px;left:50%;transform:translateX(-50%);
  width:100px;height:28px;
  background:radial-gradient(circle at 74% 50%,#242427 3px,transparent 3.6px),#000;
  border-radius:20px;
  z-index:5;
}
.hero-phone__screen{
  background:var(--purple);
  border-radius:42px;
  flex: 1;
  width: 100%;
  display:flex;flex-direction:column;
  align-items:center;justify-content:center;
  gap:12px;
  padding-top:44px;
  position:relative;
  overflow:hidden;
}
.hero-phone__screen::after{
  content:'';
  position:absolute;inset:0;
  background:linear-gradient(160deg,rgba(255,255,255,0.14) 0%,transparent 32%);
  pointer-events:none;
}
.hero-phone__pin{
  width:80px;height:80px;
  background:var(--gold-btn);
  border-radius:50% 50% 50% 0;
  transform:rotate(-45deg);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 8px 24px rgba(240,180,41,0.4);
  margin-bottom:4px;
}
.hero-phone__pin::after{
  content:'';
  width:26px;height:26px;
  background:#fff;
  border-radius:50%;
  transform:rotate(45deg);
}
.hero-phone__name{
  font-size:2rem;font-weight:900;
  color:var(--gold-btn);
  letter-spacing:-0.01em;
}
.hero-phone__name span{color:#fff;}

/* ══════════════════════════════════════
   MISSION
══════════════════════════════════════ */
.mission{padding:80px 0;}
.mission__card{
  background:var(--white);
  border-radius:28px;
  padding:60px 64px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:center;
  box-shadow:var(--card-shadow);
}
/* Left: stacked phones */
.mission__phones{
  position:relative;
  height:436px;
}
/* back phone – map screen */
.m-phone{
  position:absolute;
  background:linear-gradient(155deg,#3f3f41 0%,#1c1c1e 30%,#0e0e10 100%);
  border-radius:38px;
  padding:8px;
  box-shadow:0 16px 48px rgba(0,0,0,0.18), inset 0 0 0 1.5px rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
}
.m-phone::before{
  content:'';
  position:absolute;
  top:14px;left:50%;transform:translateX(-50%);
  width:56px;height:16px;
  background:radial-gradient(circle at 74% 50%,#2a2a2d 2px,transparent 2.4px),#000;
  border-radius:12px;
  z-index:5;
}
.m-phone::after{
  content:'';
  position:absolute;right:-3px;top:22%;
  width:3px;height:12%;
  background:#0a0a0b;border-radius:0 2px 2px 0;
}
.m-phone--back{
  width:200px;
  /* Добавлено адаптивное соотношение сторон */
  aspect-ratio: 9 / 16.5;
  left:0;top:20px;
  z-index:1;
  transform:rotate(-3deg);
}
.m-phone--front{
  width:210px;
  /* Добавлено адаптивное соотношение сторон */
  aspect-ratio: 9 / 16.5;
  left:80px;top:40px;
  z-index:2;
}
.m-phone__screen{
  border-radius:28px;
  overflow:hidden;
  flex: 1;
  width: 100%;
  position:relative;
  background:#e8eaf0;
}
.m-phone__screen::after{
  content:'';
  position:absolute;inset:0;
  background:linear-gradient(160deg,rgba(255,255,255,0.16) 0%,transparent 30%);
  pointer-events:none;
  z-index:4;
}
/* Map screen content */
.map-screen{
  width:100%;height:100%;
  background:#e8eaf0;
  position:relative;
  overflow:hidden;
}
.map-streets{
  position:absolute;inset:0;
  background:
    linear-gradient(#c8cad4 1px,transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg,#c8cad4 1px,transparent 1px) 0 0 / 28px 28px;
  opacity:0.4;
}
.map-label{
  position:absolute;
  font-size:0.45rem;font-weight:600;
  color:#555;background:rgba(255,255,255,0.7);
  padding:2px 5px;border-radius:4px;
}
.map-label--1{top:28%;left:10%;}
.map-label--2{top:18%;left:40%;}
.map-dot{
  position:absolute;
  width:10px;height:10px;
  border-radius:50%;
  border:2px solid #fff;
}
.map-dot--warn{background:#F59E0B;top:35%;left:22%;}
.map-dot--warn2{background:#EF4444;top:55%;left:40%;}
.map-dot--ok{background:#22C55E;top:45%;left:60%;}
.map-search{
  position:absolute;bottom:0;left:0;right:0;
  background:#fff;
  padding:8px 10px;
  display:flex;flex-direction:column;gap:4px;
}
.map-search-bar{
  background:#f0f0f5;border-radius:8px;
  padding:5px 8px;font-size:0.5rem;color:#aaa;
  display:flex;align-items:center;gap:4px;
}
.map-btns{display:flex;gap:4px;}
.map-btn{
  flex:1;background:var(--purple);border-radius:6px;
  padding:4px 6px;font-size:0.45rem;font-weight:600;color:#fff;
  display:flex;align-items:center;gap:3px;
}
.map-sos-badge{
  position:absolute;top:11%;right:4%;
  background:var(--red-sos);color:#fff;
  font-size:0.55rem;font-weight:800;
  padding:3px 8px;border-radius:100px;
  letter-spacing:0.05em;
  box-shadow:0 2px 8px rgba(229,57,53,0.45);
  z-index:10;
}
/* SOS screen */
.sos-screen{
  width:100%;height:100%;
  background:#fff;
  display:flex;flex-direction:column;
  align-items:center;justify-content:center;
  gap:10px;padding:16px;padding-top:34px;
}
.sos-title{font-size:0.8rem;font-weight:800;color:#1a1a1a;text-align:center;}
.sos-sub{font-size:0.55rem;color:#888;text-align:center;}
.sos-ring{
  width:100px;height:100px;border-radius:50%;
  background:rgba(229,57,53,0.12);
  display:flex;align-items:center;justify-content:center;
  margin-top:4px;
}
.sos-btn{
  width:80px;height:80px;border-radius:50%;
  background:var(--red-sos);
  display:flex;align-items:center;justify-content:center;
  font-size:1rem;font-weight:900;color:#fff;
  letter-spacing:0.05em;
  box-shadow:0 4px 16px rgba(229,57,53,0.4);
}
.sos-location{
  background:#f5f5f5;border-radius:10px;
  padding:8px 10px;width:100%;
  display:flex;align-items:flex-start;gap:6px;
}
.sos-loc-icon{font-size:0.9rem;margin-top:1px;}
.sos-loc-text{font-size:0.5rem;color:#555;line-height:1.4;}
.sos-loc-text strong{display:block;font-size:0.55rem;color:#1a1a1a;}

/* Mission right text */
.mission__text{text-align:right;}
.mission__eyebrow{
  font-size:1.5rem;font-weight:800;
  color:var(--gold);margin-bottom:12px;
}
.mission__desc{
  font-size:1rem;color:var(--text-mid);
  line-height:1.6;margin-bottom:8px;
}
.mission__desc strong{color:var(--blue-link);font-weight:700;}
.mission__divider{
  border:none;border-top:1px solid #e0e0e8;
  margin:20px 0;
}
.mission__stat{
  font-size:3rem;font-weight:900;
  color:var(--gold);line-height:1;
  margin-bottom:6px;
}
.mission__stat-line{
  font-size:1.1rem;font-weight:700;
  color:var(--text-mid);margin-bottom:12px;
}
.mission__stat-line strong{color:var(--blue-link);}
.mission__body{
  font-size:0.95rem;color:var(--text-mid);
  line-height:1.6;margin-bottom:24px;
}
.mission__body strong{color:var(--blue-link);font-weight:600;}
/* people row */
.people-row{
  display:flex;gap:6px;justify-content:flex-end;align-items:flex-end;
}
.person-fig{font-size:1.6rem;opacity:0.35;}
.person-fig.hi{opacity:1;color:var(--blue-link);}

/* ══════════════════════════════════════
   MAIN FUNCTIONS
══════════════════════════════════════ */
.functions{
  padding:80px 0;
  background:linear-gradient(160deg,#fff 0%,#eef0fa 100%);
}
.functions__inner{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:center;
}
.fn-title{
  font-size:clamp(2.4rem,5vw,3.6rem);
  font-weight:900;
  color:var(--gold);
  line-height:1.05;
  margin-bottom:24px;
}
.fn-sub{
  font-size:0.95rem;color:var(--text-mid);
  margin-bottom:36px;line-height:1.6;
}
.fn-cards{display:flex;gap:16px;}
.fn-card{
  flex:1;
  background:var(--white);
  border-radius:18px;
  padding:24px 20px;
  box-shadow:0 2px 20px rgba(100,110,180,0.08);
  border:1px solid rgba(107,127,212,0.08);
}
.fn-card__num{
  width:34px;height:34px;
  background:var(--purple);
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:0.9rem;font-weight:800;
  margin-bottom:14px;
}
.fn-card__title{font-size:1rem;font-weight:800;margin-bottom:6px;}
.fn-card__desc{font-size:0.85rem;color:var(--text-muted);line-height:1.55;}

/* Map app phone */
.functions__phone{
  display:flex;justify-content:flex-end;
  position:relative;
}
.functions__phone::before{
  content:'';
  position:absolute;
  right:-40px;top:50%;transform:translateY(-50%);
  width:420px;height:420px;
  background:radial-gradient(circle,rgba(107,127,212,0.14) 0%,transparent 65%);
  pointer-events:none;
}
.fn-phone{
  width:260px;
  aspect-ratio: 9 / 18;
  background:linear-gradient(155deg,#48484a 0%,#212123 25%,#131315 60%,#08080a 100%);
  border-radius:50px;
  padding:9px;
  box-shadow:0 32px 64px rgba(30,40,100,0.22), inset 0 0 0 2px rgba(255,255,255,0.07);
  position:relative;z-index:1;
  display: flex;
  flex-direction: column;
}
.fn-phone::before{
  content:'';
  position:absolute;left:-3px;top:19%;
  width:3px;height:9%;
  background:#0a0a0b;border-radius:2px 0 0 2px;
}
.fn-phone::after{
  content:'';
  position:absolute;right:-3px;top:24%;
  width:3px;height:14%;
  background:#0a0a0b;border-radius:0 2px 2px 0;
}
.fn-phone__notch{
  position:absolute;
  top:13px;left:50%;transform:translateX(-50%);
  width:82px;height:22px;
  background:radial-gradient(circle at 74% 50%,#242427 2.5px,transparent 3px),#000;
  border-radius:16px;
  z-index:5;
}
.fn-phone__screen{
  background:#e8eaf0;
  border-radius:40px;
  flex: 1;
  width: 100%;
  overflow:hidden;
  position:relative;
  display: flex;
  flex-direction: column;
}
.fn-phone__screen::after{
  content:'';
  position:absolute;inset:0;
  background:linear-gradient(160deg,rgba(255,255,255,0.14) 0%,transparent 28%);
  pointer-events:none;
  z-index:3;
}
/* nav bar inside phone */
.fn-map-nav{
  background:#fff;
  padding:38px 12px 6px;
  display:flex;flex-direction:column;gap:4px;
  position:relative;z-index:2;
}
.fn-map-nav-row{
  display:flex;align-items:center;gap:6px;
  font-size:0.55rem;color:#555;font-weight:500;
}
.fn-map-nav-dot{
  width:10px;height:10px;
  border-radius:50%;
  background:var(--gold-btn);
  flex-shrink:0;
}
.fn-map-nav-dot--outline{
  background:transparent;
  border:2px solid var(--purple);
}
.fn-map-bg{
  flex:1;
  background:#e8eaf0;
  position:relative;
}
.fn-map-grid{
  position:absolute;inset:0;
  background:
    linear-gradient(#c8cad4 1px,transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg,#c8cad4 1px,transparent 1px) 0 0 / 24px 24px;
  opacity:0.35;
}
.fn-route{
  position:absolute;
  top:10%;left:30%;
  width:3px;
  height:55%;
  background:var(--purple);
  border-radius:2px;
}
.fn-route::after{
  content:'';
  position:absolute;
  bottom:0;left:-6px;
  width:14px;height:14px;
  border-radius:50%;
  background:#22C55E;
  border:2px solid #fff;
}
.fn-route-pin{
  position:absolute;
  top:8%;left:24%;
  font-size:1rem;
}
.fn-time-badge{
  position:absolute;
  top:22%;left:14%;
  background:var(--purple);
  color:#fff;
  border-radius:8px;
  padding:6px 8px;
  font-size:0.5rem;font-weight:700;
  line-height:1.3;
  text-align:center;
}
.fn-map-sos{
  position:absolute;
  top:10%;right:5%;
  background:var(--red-sos);color:#fff;
  font-size:0.55rem;font-weight:800;
  padding:3px 9px;border-radius:100px;
  letter-spacing:0.06em;
  box-shadow:0 2px 8px rgba(229,57,53,0.4);
  z-index:8;
}
.fn-bottom-card{
  background:#fff;
  padding:10px 12px;
  position:absolute;
  bottom:0;left:0;right:0;
}
.fn-bottom-title{font-size:0.55rem;font-weight:700;color:#1a1a1a;margin-bottom:6px;}
.fn-bottom-row{display:flex;gap:12px;align-items:center;}
.fn-stat{display:flex;flex-direction:column;}
.fn-stat-val{font-size:0.7rem;font-weight:800;color:var(--text);}
.fn-stat-label{font-size:0.45rem;color:#aaa;}
.fn-badge{
  background:#ECFDF5;
  color:#059669;
  font-size:0.45rem;font-weight:700;
  padding:3px 7px;border-radius:6px;
  display:flex;align-items:center;gap:3px;
}
.fn-badge-dot{width:5px;height:5px;border-radius:50%;background:#059669;}

/* ══════════════════════════════════════
   EXTRA FUNCTIONS
══════════════════════════════════════ */
.extra{
  padding:80px 0;
  background:linear-gradient(160deg,#f5f6fc 0%,#eef0fa 100%);
}
.extra-heading{
  text-align:center;
  font-size:clamp(2rem,4vw,3rem);
  font-weight:900;
  margin-bottom:56px;
}
.extra-heading em{font-style:italic;color:var(--gold);}
.extra-heading span{color:var(--text);}

.extra__layout{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:32px;
  align-items:center;
}
.extra-col{display:flex;flex-direction:column;gap:20px;}

.ex-card{
  background:var(--white);
  border-radius:20px;
  padding:24px 26px;
  box-shadow:0 2px 20px rgba(100,110,180,0.07);
  border:1px solid rgba(107,127,212,0.07);
}
.ex-card__num{
  width:34px;height:34px;
  background:var(--purple);
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:0.9rem;font-weight:800;
  margin-bottom:14px;
  flex-shrink:0;
}
.ex-card__header{display:flex;align-items:center;gap:12px;margin-bottom:8px;}
.ex-card__title{font-size:1rem;font-weight:800;}
.ex-card__desc{font-size:0.875rem;color:var(--text-muted);line-height:1.55;}

/* Profile phone */
.ex-phone{
  width:230px;
  aspect-ratio: 9 / 18;
  background:linear-gradient(155deg,#48484c 0%,#232327 25%,#141417 60%,#08080a 100%);
  border-radius:46px;
  padding:9px;
  box-shadow:0 32px 64px rgba(50,60,130,0.22),
             inset 0 0 0 2px rgba(255,255,255,0.07);
  position:relative;
  display: flex;
  flex-direction: column;
}
.ex-phone::before{
  content:'';
  position:absolute;left:-3px;top:19%;
  width:3px;height:9%;
  background:#0a0a0b;border-radius:2px 0 0 2px;
}
.ex-phone::after{
  content:'';
  position:absolute;right:-3px;top:24%;
  width:3px;height:14%;
  background:#0a0a0b;border-radius:0 2px 2px 0;
}
.ex-phone__notch{
  position:absolute;
  top:13px;left:50%;transform:translateX(-50%);
  width:78px;height:21px;
  background:radial-gradient(circle at 74% 50%,#2b2b2e 2.5px,transparent 3px),#000;
  border-radius:16px;
  z-index:6;
}
.ex-phone__sos{
  position:absolute;
  top:10%;right:5%;
  background:var(--red-sos);color:#fff;
  font-size:0.58rem;font-weight:800;
  padding:4px 10px;border-radius:100px;
  letter-spacing:0.06em;
  box-shadow:0 2px 10px rgba(229,57,53,0.5);
  z-index:8;
}
.ex-phone__screen{
  background:#fff;
  border-radius:38px;
  overflow:hidden;
  flex: 1;
  width: 100%;
  display:flex;flex-direction:column;
  position:relative;
}
.ex-phone__screen::after{
  content:'';
  position:absolute;inset:0;
  background:linear-gradient(160deg,rgba(255,255,255,0.10) 0%,transparent 26%);
  pointer-events:none;
  z-index:3;
}
/* profile header */
.ex-profile-header{
  background:var(--purple);
  padding:44px 16px 20px;
  display:flex;flex-direction:column;align-items:center;gap:8px;
}
.ex-avatar{
  width:64px;height:64px;border-radius:50%;
  background:rgba(255,255,255,0.25);
  display:flex;align-items:center;justify-content:center;
  font-size:1.8rem;
  border:3px solid rgba(255,255,255,0.4);
}
.ex-profile-name{
  font-size:0.75rem;font-weight:700;color:#fff;
}
/* rows */
.ex-profile-rows{
  padding:12px;
  display:flex;flex-direction:column;gap:6px;
  flex:1;
}
.ex-row{
  display:flex;align-items:center;justify-content:space-between;
  background:#f5f6fc;
  border-radius:10px;
  padding:9px 12px;
}
.ex-row-left{display:flex;align-items:center;gap:8px;}
.ex-row-icon{font-size:0.85rem;}
.ex-row-text{font-size:0.6rem;color:#555;font-weight:500;}
.ex-row-arrow{font-size:0.7rem;color:#aaa;}
/* nav bottom */
.ex-phone-nav{
  border-top:1px solid #eee;
  padding:10px 0 6px;
  display:flex;justify-content:space-around;
}
.ex-nav-ico{font-size:1.2rem;opacity:0.5;}
.ex-nav-ico.active{opacity:1;}

/* ══════════════════════════════════════
   CONTACTS
══════════════════════════════════════ */
.contacts{
  padding:80px 0 100px;
  background:#fff;
}
.contacts__inner{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:center;
}
/* Reference layout has the phone mock-up on the left and the text on the right */
.contacts__inner > div:first-child{order:2;}
.contacts__inner > .ct-phone{order:1;justify-self:center;}
.contacts__heading{
  font-size:2.4rem;font-weight:900;
  margin-bottom:48px;
}
.contact-list{display:flex;flex-direction:column;gap:28px;}
.c-label{
  font-size:0.9rem;font-weight:800;
  margin-bottom:4px;color:var(--text);
}
.c-value{
  font-size:1rem;color:var(--text-mid);font-weight:400;
}
/* Contacts phone */
.ct-phone{
  width:280px;
  aspect-ratio: 9 / 18;
  background:linear-gradient(155deg,#48484c 0%,#232327 25%,#141417 60%,#08080a 100%);
  border-radius:54px;
  padding:10px;
  box-shadow:0 32px 64px rgba(50,60,130,0.20), inset 0 0 0 2px rgba(255,255,255,0.07);
  position:relative;
  display: flex;
  flex-direction: column;
}
.ct-phone::before{
  content:'';
  position:absolute;left:-3px;top:19%;
  width:3px;height:9%;
  background:#0a0a0b;border-radius:2px 0 0 2px;
}
.ct-phone::after{
  content:'';
  position:absolute;right:-3px;top:24%;
  width:3px;height:14%;
  background:#0a0a0b;border-radius:0 2px 2px 0;
}
.ct-phone__notch{
  position:absolute;
  top:15px;left:50%;transform:translateX(-50%);
  width:96px;height:26px;
  background:radial-gradient(circle at 74% 50%,#2b2b2e 3px,transparent 3.6px),#000;
  border-radius:18px;
  z-index:6;
}
.ct-phone__sos{
  position:absolute;
  top:9%;right:5%;
  background:var(--red-sos);color:#fff;
  font-size:0.6rem;font-weight:800;
  padding:4px 11px;border-radius:100px;
  letter-spacing:0.07em;
  box-shadow:0 2px 10px rgba(229,57,53,0.45);
  z-index:8;
}
.ct-phone__screen{
  background:var(--purple);
  border-radius:44px;
  flex: 1;
  width: 100%;
  overflow:hidden;
  display:flex;flex-direction:column;
  position:relative;
}
.ct-phone__screen::after{
  content:'';
  position:absolute;inset:0;
  background:linear-gradient(160deg,rgba(255,255,255,0.12) 0%,transparent 30%);
  pointer-events:none;
  z-index:3;
}
/* top wavy header */
.ct-top{
  background:var(--purple);
  padding:44px 16px 28px;
  position:relative;
}
.ct-top-name{
  font-size:1.1rem;font-weight:900;color:#fff;
  text-align:center;letter-spacing:0.01em;
}
.ct-wave{
  position:absolute;
  bottom:-18px;left:0;right:0;
  height:36px;
  background:var(--purple);
  clip-path:ellipse(60% 100% at 50% 0%);
  z-index:1;
}
/* search */
.ct-search{
  background:#fff;
  padding:12px 16px 8px;
  position:relative;z-index:2;
}
.ct-search-bar{
  background:#f0f0f5;
  border-radius:100px;
  padding:8px 14px;
  display:flex;align-items:center;gap:8px;
  font-size:0.65rem;color:#aaa;
}
.ct-search-ico{font-size:0.8rem;}
/* content area */
.ct-content{
  background:#fff;
  flex:1;
  padding:12px 14px;
  display:flex;flex-direction:column;gap:10px;
  overflow:hidden;
}
/* weather widget */
.ct-weather{
  background:var(--purple);
  border-radius:16px;
  padding:14px;
  display:flex;align-items:center;justify-content:space-between;
  color:#fff;
}
.ct-weather-city{font-size:0.65rem;font-weight:600;opacity:0.85;margin-bottom:2px;}
.ct-weather-temp{font-size:1.6rem;font-weight:900;line-height:1;}
.ct-weather-sub{font-size:0.5rem;opacity:0.7;margin-top:2px;}
.ct-weather-icon{font-size:2rem;}
/* premium card */
.ct-premium{
  background:var(--purple);
  border-radius:16px;
  padding:14px;
  color:#fff;
}
.ct-premium-title{
  font-size:0.85rem;font-weight:900;
  color:var(--gold-btn);
  text-align:center;
  margin-bottom:10px;
}
.ct-premium-list{
  display:flex;flex-direction:column;gap:4px;
}
.ct-premium-item{
  font-size:0.55rem;color:rgba(255,255,255,0.85);
  display:flex;align-items:center;gap:5px;
}
.ct-premium-item::before{content:'•';font-size:0.7rem;}
.ct-premium-btn{
  margin-top:10px;
  background:var(--gold-btn);
  color:#fff;
  font-size:0.55rem;font-weight:700;
  padding:6px 12px;border-radius:100px;
  display:inline-flex;align-items:center;gap:6px;
  float:right;
}
/* tips label */
.ct-tips-label{
  font-size:0.6rem;font-weight:700;color:#1a1a1a;
}

/* ══════════════════════════════════════
   RESPONSIVE — fluid, flexible layout
══════════════════════════════════════ */

/* ---- Tablet / small laptop ---- */
@media(max-width:1024px){
  .container{padding:0 32px;}
  .nav__links{gap:24px;}
  .hero__inner{gap:28px;}
  .hero-phone{width:250px;border-radius:46px;}
  .hero-phone__screen{border-radius:36px;}
  .mission__card{padding:48px 36px;gap:40px;}
  .functions__inner{gap:36px;}
  .fn-phone{width:220px;border-radius:42px;}
  .fn-phone__screen{border-radius:34px;}
  .ex-phone{width:200px;border-radius:40px;}
  .ex-phone__screen{border-radius:32px;}
  .ct-phone{width:240px;border-radius:46px;}
  .ct-phone__screen{border-radius:38px;}
}

/* ---- Tablet / stacked layout ---- */
@media(max-width:900px){
  .hero__inner,.mission__card,.functions__inner,
  .contacts__inner{
    grid-template-columns:1fr;
    text-align:center;
  }
  .hero__content{order:1;}
  .hero__phone-wrap{order:2;justify-content:center;margin-top:8px;}
  .hero__sub{margin-left:auto;margin-right:auto;}
  .btn-learn{margin:0 auto;}

  .mission__phones{
    height:436px;
    margin:0 auto 32px;
    max-width:320px;
  }
  .mission__text{text-align:center;}
  .mission__divider{margin:20px auto;}
  .people-row{justify-content:center;}

  .fn-title,.fn-sub{text-align:center;}
  .fn-cards{flex-direction:column;}
  .functions__phone{order:-1;justify-content:center;margin-bottom:8px;}
  .functions__phone::before{display:none;}
  .fn-phone{margin:0 auto;}

  .extra__layout{
    grid-template-columns:1fr;
    justify-items:center;
  }
  .extra-col{order:2;width:100%;max-width:420px;}
  .extra-col:first-of-type{order:1;}
  .ex-phone{order:0;margin-bottom:8px;}

  .contacts__inner > div:first-child{order:2;text-align:center;}
  .contacts__inner > .ct-phone{order:1;margin:0 auto;}
  .contact-list{align-items:center;}
}

/* ---- Phones ---- */
@media(max-width:600px){
  .container{padding:0 20px;}
  .nav__links{display:none;}
  .mission__card{padding:32px 20px;border-radius:20px;}

  .hero{padding:100px 0 40px;}
  .hero-phone{width:210px;border-radius:40px;}
  .hero-phone__screen{border-radius:31px;}
  .mission__phones{height:374px;max-width:250px;}
  .m-phone--back{width:170px;left:0;top:20px;border-radius:32px;}
  .m-phone--front{width:180px;left:60px;top:36px;border-radius:32px;}
  .m-phone__screen{border-radius:24px;}

  .fn-phone{width:190px;border-radius:36px;}
  .fn-phone__screen{border-radius:28px;}
  .ex-phone{width:180px;border-radius:36px;}
  .ex-phone__screen{border-radius:28px;}
  .ct-phone{width:220px;border-radius:40px;}
  .ct-phone__screen{border-radius:31px;}

  .extra-heading{margin-bottom:36px;}
  .contacts__heading{margin-bottom:24px;text-align:center;}
}

/* ---- Small phones ---- */
@media(max-width:400px){
  .container{padding:0 16px;}
  .hero-phone{width:180px;border-radius:34px;}
  .hero-phone__screen{border-radius:26px;}
  .mission__phones{height:324px;max-width:215px;}
  .m-phone--back{width:145px;top:16px;border-radius:28px;}
  .m-phone--front{width:155px;left:50px;top:32px;border-radius:28px;}
  .m-phone__screen{border-radius:20px;}
  .fn-phone{width:170px;border-radius:32px;}
  .fn-phone__screen{border-radius:24px;}
  .ex-phone{width:160px;border-radius:32px;}
  .ex-phone__screen{border-radius:24px;}
  .ct-phone{width:190px;border-radius:36px;}
  .ct-phone__screen{border-radius:28px;}
}

/* ══════════════════════════════════════
   MOBILE MENU
══════════════════════════════════════ */
.nav__burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 5px; flex-shrink:0; }
.nav__burger span { width: 25px; height: 3px; background: var(--text); border-radius: 2px; }

.nav__mobile-menu {
  position: fixed; top: 60px; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 20px;
  display: none;
  z-index: 1000;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}
.nav__mobile-menu.is-open { display: block; }
.nav__mobile-links { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.nav__mobile-links a { font-size: 1.2rem; font-weight: 600; color: var(--text); }

@media(max-width:600px) {
  .nav__burger { display: flex; }
}