:root{
    --bg:#050403;
    --card:#120e09;
    --card-2:#1a140d;
    --line:rgba(212,175,110,0.16);
    --line-strong:rgba(212,175,110,0.38);
    --ivory:#f3ede0;
    --muted:#a89c86;
    --muted-2:#6f6555;
    --gold:#d8b06a;
    --gold-soft:#f0d9a8;
    --gold-dim:#8a6f3e;
    --gold-glow:rgba(216,176,106,0.35);
  }

  *{margin:0;padding:0;box-sizing:border-box;}
  html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;}
  body{
    background:var(--bg);
    color:var(--ivory);
    font-family:'Manrope',sans-serif;
    line-height:1.6;
    display:flex;
    justify-content:center;
    overflow-x:hidden;
    -webkit-tap-highlight-color:transparent;
  }
  a,button{touch-action:manipulation;}
  ::selection{background:var(--gold);color:#150f08;}
  a{color:inherit;text-decoration:none;}
  img{max-width:100%;display:block;}
  ul{list-style:none;}

  .display{font-family:'Kanit',sans-serif;}

  .page{
    width:100%;
    max-width:480px;
    min-height:100vh;
    min-height:100dvh;
    background:
      repeating-linear-gradient(135deg, rgba(216,176,106,0.035) 0px, rgba(216,176,106,0.035) 1px, transparent 1px, transparent 14px),
      radial-gradient(140% 60% at 50% 0%, rgba(216,176,106,0.08) 0%, transparent 60%),
      var(--bg);
    padding:calc(18px + env(safe-area-inset-top,0px))
            calc(16px + env(safe-area-inset-right,0px))
            calc(60px + env(safe-area-inset-bottom,0px))
            calc(16px + env(safe-area-inset-left,0px));
    position:relative;
    overflow:hidden;
  }

  @keyframes floaty{
    0%,100%{transform:translateY(0) rotate(0deg);}
    50%{transform:translateY(-10px) rotate(3deg);}
  }
  .doodle{
    position:absolute;
    color:var(--gold-dim);
    pointer-events:none;
    z-index:0;
    animation:floaty 6s ease-in-out infinite;
  }
  .doodle:nth-child(2){animation-duration:7.5s;animation-delay:.3s;}
  .doodle:nth-child(3){animation-duration:5.5s;animation-delay:.6s;}
  .doodle:nth-child(4){animation-duration:8s;animation-delay:.9s;}
  .doodle:nth-child(5){animation-duration:6.8s;animation-delay:.2s;}
  .doodle svg{width:100%;height:100%;display:block;}

  /* ---------- top bar ---------- */
  .topbar{
    display:flex;align-items:center;justify-content:space-between;
    padding:6px 4px 22px;
  }
  .icon-btn{
    width:38px;height:38px;border-radius:50%;
    display:flex;align-items:center;justify-content:center;
    border:1px solid var(--line-strong);
    color:var(--gold);
    background:rgba(216,176,106,0.05);
    transition:background .25s ease;
  }
  .icon-btn{transition:background .25s ease, box-shadow .25s ease, transform .25s ease;}
  .icon-btn svg{width:18px;height:18px;}

  /* ---------- profile ---------- */
  .profile{
    display:flex;flex-direction:column;align-items:center;
    text-align:center;padding:4px 6px 30px;
  }
  @keyframes ringSpin{
    0%{transform:rotate(0deg);}
    100%{transform:rotate(360deg);}
  }
  @keyframes glowPulse{
    0%,100%{box-shadow:0 0 0 10px rgba(216,176,106,0.06), 0 0 30px 6px rgba(216,176,106,0.25), 0 22px 46px rgba(0,0,0,0.55);}
    50%{box-shadow:0 0 0 14px rgba(216,176,106,0.1), 0 0 44px 12px rgba(216,176,106,0.4), 0 22px 46px rgba(0,0,0,0.55);}
  }
  .avatar-wrap{
    position:relative;
    width:172px;height:172px;
    margin-bottom:22px;
    display:flex;align-items:center;justify-content:center;
  }
  .avatar-wrap::before{
    content:'';
    position:absolute;inset:-7px;
    border-radius:50%;
    background:conic-gradient(from 0deg, var(--gold), transparent 25%, var(--gold-soft), transparent 60%, var(--gold-dim), var(--gold));
    animation:ringSpin 7s linear infinite;
    opacity:.85;
  }
  .avatar-wrap::after{
    content:'';
    position:absolute;inset:0;
    border-radius:50%;
    animation:glowPulse 3.2s ease-in-out infinite;
    pointer-events:none;
  }
  .avatar{
    position:relative;
    width:160px;height:160px;border-radius:50%;
    background:linear-gradient(150deg,#2a2015,#0f0b06);
    border:3px solid var(--bg);
    display:flex;align-items:center;justify-content:center;
    font-family:'Kanit',sans-serif;font-weight:800;font-size:40px;
    color:var(--gold);
    overflow:hidden;
    z-index:1;
  }
  @keyframes shimmerText{
    0%{background-position:0% 50%;}
    100%{background-position:200% 50%;}
  }
  .profile h1{
    font-family:'Kanit',sans-serif;font-weight:800;font-size:34px;
    letter-spacing:0.01em;margin-bottom:14px;
    background:linear-gradient(90deg, var(--gold-dim), var(--gold-soft), var(--gold), var(--gold-soft), var(--gold-dim));
    background-size:220% auto;
    -webkit-background-clip:text;background-clip:text;color:transparent;
    animation:shimmerText 6s linear infinite;
  }
  .profile .tagline{
    font-size:16.5px;font-weight:500;color:var(--ivory);
    max-width:300px;line-height:1.5;
    position:relative;padding:0 6px;
  }
  .profile .tagline::before,.profile .tagline::after{
    color:var(--gold-dim);font-family:'Kanit',sans-serif;font-size:20px;
  }
  .profile .tagline::before{content:'“';margin-right:2px;}
  .profile .tagline::after{content:'”';margin-left:2px;}

  /* ---------- section shell ---------- */
  .section-title{
    display:flex;align-items:center;justify-content:center;gap:10px;
    font-family:'Kanit',sans-serif;font-weight:700;font-size:19px;
    color:var(--gold-soft);
    text-align:center;
    margin:26px 0 12px;
    position:relative;
    padding-bottom:8px;
  }
  .section-title::after{
    content:'';
    position:absolute;left:50%;bottom:0;
    width:46px;height:2px;
    transform:translateX(-50%);
    background:linear-gradient(90deg, transparent, var(--gold), transparent);
  }
  .section-title .arrow{color:var(--gold-dim);font-size:16px;animation:bounceDown 1.8s ease-in-out infinite;}
  @keyframes bounceDown{
    0%,100%{transform:translateY(0);}
    50%{transform:translateY(4px);}
  }

  /* ---------- card ---------- */
  .card{
    background:linear-gradient(155deg, var(--card) 0%, #0c0906 100%);
    border:1px solid var(--line-strong);
    border-radius:18px;
    padding:17px 18px;
    transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  }
  .card + .card{margin-top:14px;}

  .card-head{
    display:flex;align-items:center;gap:10px;margin-bottom:10px;
  }
  .card-head .ico{
    width:28px;height:28px;border-radius:50%;
    background:rgba(216,176,106,0.1);
    display:flex;align-items:center;justify-content:center;
    color:var(--gold);flex-shrink:0;
  }
  .card-head .ico svg{width:14px;height:14px;}
  .card-head h3{font-family:'Kanit',sans-serif;font-weight:700;font-size:16px;color:var(--gold-soft);}

  .card p{color:var(--ivory);font-size:13.5px;font-weight:500;line-height:1.55;opacity:.92;}
  .card p + p{margin-top:10px;}

  /* ---------- trust grid ---------- */
  .trust-grid{
    display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px;
  }
  .trust-card{
    background:var(--card);border:1px solid var(--line-strong);border-radius:14px;
    padding:12px 13px;
    transition:transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  }
  .trust-card .ico{
    width:26px;height:26px;border-radius:8px;
    background:rgba(216,176,106,0.1);
    display:flex;align-items:center;justify-content:center;
    color:var(--gold);margin-bottom:8px;
  }
  .trust-card .ico svg{width:13px;height:13px;}
  .trust-card h4{font-family:'Kanit',sans-serif;font-weight:600;font-size:13.5px;color:var(--ivory);margin-bottom:5px;line-height:1.3;}
  .trust-card p{font-size:12px;color:var(--ivory);font-weight:500;line-height:1.45;opacity:.9;}

  /* ---------- currency highlight button ---------- */
  .currency-btn{
    position:relative;
    overflow:hidden;
    display:flex;align-items:center;gap:12px;
    background:linear-gradient(135deg, var(--gold) 0%, #b98f4c 100%);
    border-radius:18px;
    padding:14px 16px;
    margin-bottom:10px;
    transition:transform .25s ease, box-shadow .25s ease;
  }
  .currency-btn::before{
    content:'';
    position:absolute;top:0;left:-60%;
    width:40%;height:100%;
    background:linear-gradient(115deg, transparent, rgba(255,255,255,0.45), transparent);
    animation:sheen 3.4s ease-in-out infinite;
    z-index:0;
  }
  @keyframes sheen{
    0%{left:-60%;}
    55%,100%{left:130%;}
  }
  .currency-btn .bank-logos{
    position:absolute;inset:0;z-index:0;overflow:hidden;
    pointer-events:none;border-radius:inherit;
  }
  .currency-btn .bank-logos span{
    position:absolute;
    font-family:'Kanit',sans-serif;font-weight:800;
    white-space:nowrap;letter-spacing:0.02em;
    color:rgba(21,15,8,0.16);
  }
  .currency-btn .ico{
    position:relative;z-index:1;
    width:38px;height:38px;border-radius:50%;
    background:rgba(15,11,6,0.15);
    display:flex;align-items:center;justify-content:center;
    color:#150f08;flex-shrink:0;
  }
  .currency-btn .ico svg{width:20px;height:20px;}
  .currency-btn .txt{position:relative;z-index:1;}
  .currency-btn .txt h4{
    font-family:'Kanit',sans-serif;font-weight:700;font-size:16px;color:#150f08;margin-bottom:2px;
  }
  .currency-btn .txt p{font-size:11.5px;color:#3a2d16;font-weight:500;line-height:1.35;}
  .currency-btn .chev{position:relative;z-index:1;margin-left:auto;color:#150f08;opacity:.6;flex-shrink:0;}

  /* ---------- ряд одинаковых кнопок ---------- */
  .segment-row{
    display:flex;
    align-items:stretch;
    margin-bottom:10px;
    background:var(--card);
    border:1px solid var(--line-strong);
    border-radius:14px;
    overflow:hidden;
  }
  .segment-row a{
    flex:1 1 0;
    min-width:0;
    display:flex;align-items:center;justify-content:center;
    text-align:center;
    font-size:13px;font-weight:600;line-height:1.25;
    color:var(--gold-soft);
    padding:11px 6px;
    transition:background .25s ease,color .25s ease;
  }
  .segment-row a + a{border-left:1px solid var(--line-strong);}

  /* ---------- services list ---------- */
  .services-grid{
    display:grid;grid-template-columns:1fr 1fr;gap:10px;
  }
  .service-row{
    display:flex;align-items:center;gap:10px;
    background:var(--card);border:1px solid var(--line-strong);border-radius:14px;
    padding:13px 12px;
    transition:border-color .25s ease,background .25s ease;
  }
  .service-row{transition:border-color .25s ease,background .25s ease,transform .25s ease,box-shadow .25s ease;}
  .service-row .ico{
    width:28px;height:28px;border-radius:8px;
    background:rgba(216,176,106,0.1);
    display:flex;align-items:center;justify-content:center;
    color:var(--gold);flex-shrink:0;font-size:13px;
  }
  .service-row .ico svg{width:14px;height:14px;}
  .service-row span{font-size:13px;font-weight:700;color:var(--ivory);line-height:1.3;}
  .service-row .chev{margin-left:auto;color:var(--muted-2);flex-shrink:0;}
  .service-row .chev svg{width:13px;height:13px;}

  .service-card{
    display:flex;flex-direction:column;gap:8px;
    background:var(--card);border:1px solid var(--line-strong);border-radius:14px;
    padding:12px 12px 10px;
  }
  .service-card .head{display:flex;align-items:center;gap:10px;}
  .service-card .ico{
    width:28px;height:28px;border-radius:8px;
    background:rgba(216,176,106,0.1);
    display:flex;align-items:center;justify-content:center;
    color:var(--gold);flex-shrink:0;font-size:13px;
  }
  .service-card .ico svg{width:14px;height:14px;}
  .service-card span{font-size:13px;font-weight:700;color:var(--ivory);line-height:1.3;}
  .service-card .cities{display:flex;gap:8px;}
  .service-card .cities a{
    flex:1;text-align:center;
    font-size:11.5px;font-weight:600;color:var(--gold-soft);
    background:rgba(216,176,106,0.08);
    border:1px solid var(--line-strong);
    border-radius:10px;padding:7px 4px;
    transition:border-color .25s ease,background .25s ease;
  }

  /* ---------- contacts ---------- */
  .contact-row{
    display:flex;align-items:center;gap:12px;
    background:var(--card);border:1px solid var(--line-strong);border-radius:14px;
    padding:16px 16px;
    transition:border-color .25s ease;
  }
  .contact-row{transition:border-color .25s ease,transform .25s ease,box-shadow .25s ease;}
  .contact-row + .contact-row{margin-top:10px;}
  .contact-row .ico{
    width:34px;height:34px;border-radius:50%;
    background:rgba(216,176,106,0.1);
    display:flex;align-items:center;justify-content:center;
    color:var(--gold);flex-shrink:0;
  }
  .contact-row .ico svg{width:16px;height:16px;}
  .contact-row span{font-family:'Kanit',sans-serif;font-weight:700;font-size:14.5px;color:var(--ivory);}
  .contact-row .chev{margin-left:auto;color:var(--muted-2);}
  .contact-row .chev svg{width:14px;height:14px;}

  /* ---------- warning ---------- */
  .warning-box{
    margin-top:14px;
    background:rgba(200,60,50,0.08);
    border:1px solid rgba(220,90,70,0.35);
    border-radius:14px;
    padding:14px 15px;
  }
  .warning-box p{
    font-size:12.5px;color:var(--ivory);font-weight:500;line-height:1.5;opacity:.92;
  }
  .warning-box p + p{margin-top:8px;}
  .warning-box strong{color:#e2897c;}

  /* ---------- footer ---------- */
  footer{text-align:center;margin-top:30px;}
  footer p{font-size:11.5px;color:var(--muted-2);letter-spacing:0.03em;}
  footer .name{color:var(--gold-dim);}

  @media (max-width:380px){
    .services-grid{grid-template-columns:1fr;}
    .trust-grid{grid-template-columns:1fr;}
  }

  /* ==========================================================
     МОБИЛЬНАЯ АДАПТАЦИЯ
     ========================================================== */

  /* Наведение — только для мыши: на телефоне подсветка «залипала»
     после касания и снималась лишь тапом в пустое место. */
  @media (hover:hover) and (pointer:fine){
    .icon-btn:hover{background:rgba(216,176,106,0.16);box-shadow:0 0 16px rgba(216,176,106,0.35);transform:translateY(-1px);}
    .card:hover{
      transform:translateY(-3px);
      border-color:var(--gold-dim);
      box-shadow:0 16px 34px rgba(0,0,0,0.45), 0 0 0 1px rgba(216,176,106,0.08);
    }
    .trust-card:hover{
      transform:translateY(-3px);
      border-color:var(--gold-dim);
      box-shadow:0 12px 26px rgba(0,0,0,0.4);
    }
    .currency-btn:hover{transform:translateY(-2px);box-shadow:0 14px 32px var(--gold-glow);}
    .service-row:hover{border-color:var(--gold-dim);background:var(--card-2);transform:translateY(-2px);box-shadow:0 10px 22px rgba(0,0,0,0.4);}
    .service-card .cities a:hover{border-color:var(--gold-dim);background:rgba(216,176,106,0.16);}
    .segment-row a:hover{background:rgba(216,176,106,0.14);color:var(--gold-soft);}
    .contact-row:hover{border-color:var(--gold-dim);transform:translateY(-2px);box-shadow:0 10px 22px rgba(0,0,0,0.4);}
  }

  /* Вместо наведения — отклик на нажатие пальцем */
  @media (hover:none){
    .icon-btn:active,
    .trust-card:active,
    .card:active,
    .service-card .cities a:active{border-color:var(--gold-dim);}
    .segment-row a:active{background:rgba(216,176,106,0.16);}
    .service-row:active,
    .contact-row:active{border-color:var(--gold-dim);background:var(--card-2);}
    .currency-btn:active{transform:scale(.985);}
    .service-row,.contact-row,.currency-btn,.trust-card,.card,
    .icon-btn,.service-card .cities a{transition:background .15s ease,border-color .15s ease,transform .15s ease;}
  }

  /* Область нажатия не меньше комфортной */
  .icon-btn{min-width:38px;min-height:38px;}
  .service-card .cities a{
    display:flex;align-items:center;justify-content:center;
    min-height:36px;
  }
  .service-row,.contact-row{min-height:52px;}

  /* Длинные слова и ссылки не выталкивают карточки за экран */
  .profile h1,.section-title,.card p,.card-head h3,
  .trust-card h4,.trust-card p,.service-row span,.service-card span,
  .contact-row span,.warning-box p,.currency-btn .txt h4,.currency-btn .txt p{
    overflow-wrap:anywhere;
  }
  .service-row span,.service-card span,.contact-row span{min-width:0;}

  /* Узкие телефоны (iPhone SE, старые Android) */
  @media (max-width:360px){
    .page{
      padding-left:calc(12px + env(safe-area-inset-left,0px));
      padding-right:calc(12px + env(safe-area-inset-right,0px));
    }
    .profile h1{font-size:29px;}
    .avatar-wrap{width:150px;height:150px;margin-bottom:18px;}
    .avatar{width:140px;height:140px;}
    .section-title{font-size:17.5px;margin:22px 0 10px;}
    .card{padding:15px 14px;}
    .contact-row{padding:14px 13px;}
    .contact-row span{font-size:13.5px;}
    .currency-btn{padding:13px 13px;gap:10px;}
    .currency-btn .txt h4{font-size:15px;}
    .currency-btn .ico{width:34px;height:34px;}
  }

  /* Телефон, повёрнутый набок: огромный аватар съедал весь экран */
  @media (orientation:landscape) and (max-height:520px){
    .avatar-wrap{width:112px;height:112px;margin-bottom:12px;}
    .avatar{width:104px;height:104px;}
    .profile{padding-bottom:18px;}
    .profile h1{font-size:26px;}
    .doodle{display:none;}
  }

  /* Уважаем системную настройку «уменьшить движение» */
  @media (prefers-reduced-motion:reduce){
    html{scroll-behavior:auto;}
    *,*::before,*::after{animation:none!important;transition:none!important;}
  }
