/* StarVisa — стилі.
   Палітра і шрифти зняті з візуальної манери сучасних візових агенцій:
   кремовий фон, білі секції, жовтий підвал, синій CTA, градієнтні кнопки.
   Правити кольори найзручніше тут, у блоці :root. */

:root {
  --cream:   #FAF4EC;
  --white:   #FFFFFF;
  --yellow:  #FFEFC3;
  --blue:    #325897;
  --blue-dk: #26436F;
  --orange:  #FF741D;
  --purple:  #AB24CD;
  --ink:     #1A1A1A;
  --muted:   #5C5C5C;
  --line:    #E8DECF;

  --grad: linear-gradient(89.28deg, #FF741D 0.62%, #AB24CD 135.08%);

  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Noto Sans", "Segoe UI", system-ui, sans-serif;

  --wrap: 1320px;
  --pad: clamp(16px, 4vw, 44px);
  --r: 16px;
  --r-lg: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { width: min(100% - var(--pad) * 2, var(--wrap)); margin-inline: auto; }

/* Щоб липка шапка не накривала заголовок секції при переході за якорем */
section[id] { scroll-margin-top: 96px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

/* Заголовки-дисплеї — жирний геометричний гротеск, великими літерами */
.display, .hero h1, .cta-box h2 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.06;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}

h3 { font-family: var(--body); font-weight: 700; margin: 0; }

/* ---------- Шапка ---------- */

.head {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  box-shadow: 0 2px 20px rgba(26, 26, 26, .05);
}
.head-inner { display: flex; align-items: center; gap: 12px; min-height: 78px; padding-block: 10px; }

.logo { text-decoration: none; margin-right: auto; display: grid; gap: 1px; flex: none; }
.logo-word {
  font-family: var(--display); font-weight: 700; font-size: 24px;
  text-transform: uppercase; letter-spacing: .01em; color: var(--blue);
  display: inline-flex; align-items: center; gap: 7px; line-height: 1.1;
}
.logo-star { width: 27px; height: 27px; fill: none; stroke: var(--orange); stroke-width: 1.7; stroke-linejoin: round; flex: none; }
.logo-sub { font-size: 13px; color: var(--blue); opacity: .85; }

.nav { display: flex; gap: 2px; background: var(--cream); border-radius: 999px; padding: 5px; flex: none; }
.nav a { text-decoration: none; font-size: 15px; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.nav a:hover { background: var(--white); }

.pill-phone {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  background: var(--blue); color: #fff; border-radius: 999px;
  padding: 11px 20px; font-size: 15.5px; font-weight: 600; white-space: nowrap;
}
.pill-phone svg { width: 17px; height: 17px; fill: currentColor; flex: none; }
.pill-phone:hover { background: var(--blue-dk); }

.burger { display: none; width: 44px; height: 40px; background: var(--cream); border: 0; border-radius: 10px; cursor: pointer; padding: 11px 11px; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
.burger span + span { margin-top: 5px; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-block; text-decoration: none; text-align: center;
  border: 0; border-radius: 8px; cursor: pointer;
  font-family: var(--body); font-size: 16px; font-weight: 600;
  padding: 13px 26px; white-space: nowrap;
  transition: filter .18s ease, transform .18s ease;
}
.btn-grad { background: var(--grad); color: #fff; }
.btn-grad:hover { filter: brightness(1.08); }
.btn-lg { font-size: 18px; padding: 16px 34px; }
.btn-wide { width: 100%; padding: 16px; font-size: 17px; }
.btn-white { background: var(--white); color: var(--ink); padding: 15px 34px; font-size: 17px; }
.btn-white:hover { transform: translateY(-2px); }

/* ---------- Герой ---------- */

.hero { padding: clamp(44px, 7vw, 90px) 0 clamp(40px, 6vw, 80px); }
.hero h1 { font-size: clamp(34px, 5.4vw, 64px); max-width: 15ch; }
.hero-sub { font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); margin: 22px 0 18px; max-width: 46ch; }
.hero-vow {
  display: inline-block; margin: 0 0 26px; padding: 11px 20px 11px 18px;
  background: var(--yellow); border-left: 4px solid var(--orange); border-radius: 4px 12px 12px 4px;
  font-weight: 600; font-size: clamp(15px, 1.25vw, 17.5px); color: #4A3B14; max-width: 52ch;
}
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 10px 34px; margin: 26px 0 0; padding: 0;
  list-style: none; font-size: 15.5px; color: var(--muted);
}
.hero-facts li { display: flex; align-items: baseline; gap: 7px; }
.hero-facts strong { font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--blue); }

.collage {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 22px);
  margin-top: clamp(44px, 6vw, 78px); align-items: stretch;
}
.tile { border-radius: var(--r-lg); overflow: hidden; margin: 0; min-height: 260px; }
.tile-yellow { background: var(--yellow); padding: 28px; transform: rotate(-2.5deg); }
.tile-blue { background: var(--blue); color: #fff; padding: 28px; transform: rotate(2deg); }
.tile-big { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.6vw, 34px); margin: 0 0 12px; }
.tile-cap { font-size: 15px; margin: 0; opacity: .92; }
.tile-blue .tile-cap { color: #E6ECF7; }

.tile-photo { position: relative; background: #E7DFD2; transform: rotate(-1.5deg); }
.tile-photo:nth-of-type(even) { transform: rotate(1.5deg); }
.tile-photo img { width: 100%; height: 100%; object-fit: cover; }
.tile-photo img.face { object-position: 50% 18%; }  /* щоб обличчя не зрізалося при кадруванні */
.tile-photo figcaption { display: none; }
.tile-photo.is-empty { display: grid; place-items: center; border: 2px dashed #C9BCA8; }
.tile-photo.is-empty figcaption { display: block; font-size: 13px; color: #8A7C68; font-family: ui-monospace, monospace; text-align: center; padding: 12px; }

/* ---------- Смуги секцій ---------- */

.band-white { background: var(--white); border-radius: var(--r-lg); padding: clamp(46px, 6vw, 88px) 0; margin-block: clamp(18px, 3vw, 34px); }
.band-cream { background: var(--cream); padding: clamp(46px, 6vw, 88px) 0; }

.band-white .display, .band-cream .display { font-size: clamp(26px, 3.6vw, 46px); margin-bottom: 18px; }
.section-lead { color: var(--muted); max-width: 54ch; margin-bottom: clamp(28px, 4vw, 46px); }

/* Банер-фото */
.banner { margin: 0 0 clamp(24px, 3vw, 40px); border-radius: var(--r); overflow: hidden; background: #E7DFD2; aspect-ratio: 16 / 5; }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.banner figcaption { display: none; }
.banner.is-empty { display: grid; place-items: center; border: 2px dashed #C9BCA8; }
.banner.is-empty figcaption { display: block; font-size: 13px; color: #8A7C68; font-family: ui-monospace, monospace; }

/* Градієнтні картки типів віз */
.cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.cards a {
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 190px; padding: 18px; border-radius: var(--r); text-decoration: none; color: #fff;
  background: linear-gradient(150deg, #E0455C 0%, #8B34C6 55%, #2C2ECB 100%);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cards li:nth-child(2) a { background: linear-gradient(150deg, #E0455C 0%, #9A31C4 60%, #3A2ECB 100%); }
.cards li:nth-child(3) a { background: linear-gradient(150deg, #D9455F 0%, #7E37CC 50%, #2C2ECB 100%); }
.cards li:nth-child(4) a { background: linear-gradient(150deg, #A93ABE 0%, #6C33CC 55%, #2C2ECB 100%); }
.cards li:nth-child(5) a { background: linear-gradient(150deg, #C63FA8 0%, #7A35C9 55%, #3230C8 100%); }
.cards li:nth-child(6) a { background: linear-gradient(150deg, #E0455C 0%, #8B34C6 55%, #2C2ECB 100%); }
.cards li:nth-child(7) a { background: linear-gradient(150deg, #D34A72 0%, #8534C6 55%, #2C2ECB 100%); }
.cards li:nth-child(8) a { background: linear-gradient(150deg, #E0455C 0%, #9A31C4 60%, #3A2ECB 100%); }
.cards li:nth-child(9) a { background: linear-gradient(150deg, #B93CB6 0%, #6E34CA 55%, #2C2ECB 100%); }
.cards li:nth-child(10) a { background: linear-gradient(150deg, #E0455C 0%, #7E37CC 50%, #2C2ECB 100%); }
.cards a:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(44, 46, 203, .22); }
.arrow { font-size: 24px; line-height: 1; }
.card-title { font-family: var(--display); font-weight: 600; font-size: 14px; text-transform: uppercase; line-height: 1.25; }

/* Послуги */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); margin-bottom: clamp(32px, 4vw, 52px); }
.services li { background: var(--white); border-radius: var(--r); padding: 24px 26px; display: grid; grid-template-columns: auto minmax(0,1fr); gap: 4px 18px; align-items: start; }
.band-white .services li { background: var(--cream); }
.services .num { grid-row: span 2; font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--orange); }
.services h3 { font-size: 18px; }
.services p { color: var(--muted); font-size: 15.5px; margin: 4px 0 0; }

/* Ціна */
.price-box { background: var(--yellow); border-radius: var(--r-lg); padding: clamp(26px, 3.4vw, 44px); display: grid; grid-template-columns: auto minmax(0,1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.price-num { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 6vw, 78px); line-height: 1; margin: 0; }
.price-cap { font-size: 15px; color: #6B5A2E; margin: 8px 0 0; max-width: 14ch; }
.price-right p { max-width: 62ch; }
.price-pay { font-size: 15.5px; color: #5F5133; background: rgba(255,255,255,.55); border-radius: 12px; padding: 16px 18px; }
.price-extra { font-size: 15.5px; color: #5F5133; }

/* Кроки */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.steps li { background: var(--cream); border-radius: var(--r); padding: 26px; }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; font-family: var(--display); font-weight: 700; font-size: 18px; margin-bottom: 16px; }
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* Про засновника */
.about-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,0.9fr); gap: clamp(28px, 4vw, 60px); align-items: start; }
.about-grid .display { font-size: clamp(24px, 3.1vw, 40px); }
.about-grid p { color: var(--muted); max-width: 60ch; }
.sign { font-family: var(--display); font-weight: 600; font-size: 15px; text-transform: uppercase; color: var(--ink); margin-top: 22px; }
.about-photo { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: #E7DFD2; aspect-ratio: 4 / 5; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo figcaption { display: none; }
.about-photo.is-empty { display: grid; place-items: center; border: 2px dashed #C9BCA8; }
.about-photo.is-empty figcaption { display: block; font-size: 13px; color: #8A7C68; font-family: ui-monospace, monospace; }

/* FAQ */
.faq-wrap { max-width: 900px; }
.faq details { background: var(--cream); border-radius: var(--r); margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; position: relative; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 16px; font-size: 26px; color: var(--orange); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); font-size: 15.5px; padding: 0 24px 22px; margin: 0; max-width: 70ch; }

/* Форма */
.form-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.form-intro .display { font-size: clamp(26px, 3.4vw, 44px); }
.form-intro p { color: var(--muted); max-width: 42ch; }
.form-alt { margin-top: 26px; margin-bottom: 12px; }
.messengers { display: flex; flex-wrap: wrap; gap: 10px; }
.msg { text-decoration: none; font-size: 15.5px; font-weight: 600; padding: 11px 22px; border-radius: 8px; background: var(--white); }
.msg:hover { background: var(--blue); color: #fff; }

.form { background: var(--white); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 38px); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14.5px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--body); font-size: 16px; color: var(--ink);
  background: var(--cream); border: 1px solid transparent; border-radius: 8px; padding: 13px 15px;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); background: var(--white); }
.field input.invalid, .field select.invalid, .field textarea.invalid { border-color: #C33A2A; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--muted); margin: 4px 0 20px; }
.check input { margin-top: 4px; accent-color: var(--orange); flex: none; }

.form-status { font-size: 15px; margin: 14px 0 0; min-height: 1.2em; white-space: pre-line; }
.form-status.ok { color: #1F7A3D; }
.form-status.err { color: #C33A2A; }

/* Синій CTA */
.cta-band { padding: clamp(30px, 4vw, 56px) 0 0; }
.cta-box { background: var(--blue); border-radius: var(--r-lg); color: #fff; text-align: center; padding: clamp(38px, 5vw, 72px) clamp(20px, 4vw, 60px); }
.cta-box h2 { font-size: clamp(22px, 2.8vw, 38px); margin-bottom: 18px; }
.cta-box p { color: #D8E1F0; font-weight: 600; margin-bottom: 28px; }

/* Підвал */
.foot { background: var(--yellow); padding: clamp(40px, 5vw, 70px) 0 36px; margin-top: clamp(30px, 4vw, 56px); }
.foot-inner { display: grid; grid-template-columns: 1.3fr minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); gap: clamp(24px, 3vw, 48px); }
.foot-col { display: grid; align-content: start; gap: 9px; }
.foot-brand { gap: 2px; align-content: start; }
.foot-col h3 { font-family: var(--display); font-weight: 700; font-size: 14px; text-transform: uppercase; margin-bottom: 6px; }
.foot-col a { text-decoration: none; font-size: 15.5px; width: fit-content; border-bottom: 1px solid transparent; }
.foot-col a:hover { border-bottom-color: var(--orange); }
.foot-msg { display: flex; gap: 14px; }
.foot-hours, .foot-owner { font-size: 15.5px; color: #6B5A2E; margin: 4px 0 0; }
.foot-note { font-size: 13.5px; line-height: 1.5; color: #6B5A2E; opacity: .85; margin: 6px 0 0; max-width: 34ch; }
.foot-legal { grid-column: 1 / -1; font-size: 13.5px; color: #6B5A2E; max-width: 90ch; margin: clamp(24px, 3vw, 40px) 0 0; padding-top: 22px; border-top: 1px solid rgba(107, 90, 46, .22); }
.foot-copy { grid-column: 1 / -1; font-size: 13.5px; color: #6B5A2E; margin: 0; }

/* ---------- Адаптив ---------- */

/* Номер телефону в шапці ховаємо раніше за меню — він найширший */
@media (max-width: 1560px) {
  .pill-phone-text { display: none; }
  .pill-phone { padding: 11px 14px; }
}

@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: block; }
  .head-inner.is-open { flex-wrap: wrap; }
  .head-inner.is-open .nav { display: flex; order: 9; width: 100%; flex-direction: column; border-radius: var(--r); padding: 10px; margin-bottom: 12px; }
  .head-inner.is-open .nav a { text-align: left; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-inner { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
}

@media (max-width: 860px) {
  body { font-size: 17px; }
  .collage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { min-height: 200px; }
  .services, .about-grid, .form-grid, .price-box { grid-template-columns: 1fr; }
  .about-photo { max-width: 340px; }
}

@media (max-width: 620px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .foot-inner { grid-template-columns: 1fr; }
  .tile { transform: none !important; }
  .hero .btn-lg { width: 100%; }
  .band-white { border-radius: var(--r); }
}

/* Одна навмисна анімація: зірка в логотипі проявляється при завантаженні */
@media (prefers-reduced-motion: no-preference) {
  .head .logo-star { animation: star-in .7s cubic-bezier(.2,.7,.3,1) both; }
  @keyframes star-in { from { opacity: 0; transform: rotate(-40deg) scale(.6); } to { opacity: 1; transform: none; } }
}
