/* ==========================
   IAGC26 / OMP Academy
   Flat corporate theme — matched to reference mockup
========================== */

:root{

    --header-bg:#ffffff;
    --nav-pill-bg:#d7eef6;
    --nav-text:#1f4a80;

    --brand-blue:#3263b2;
    --brand-blue-dark:#284f8e;

    --gray-box:#e7eae8;

    --light-bar:#91d8f6;

    --text:#2b2b2b;
    --text-muted:#5b5b5b;
    --border:#d8dee4;
    --white:#ffffff;

    --accent-gold:#e0a63a;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

#committee,
#speakers,
#abstracts,
#registration,
#registerFormPanel{
    scroll-margin-top:110px;
}

#registerFormPanel,
#abstractsFormPanel{
    transition:max-height .5s ease,opacity .5s ease;
}

@media(max-width:700px){
    #committee,
    #speakers,
    #abstracts,
    #registration,
    #registerFormPanel{
        scroll-margin-top:195px;
    }
}

body{
    font-family:'Inter',sans-serif;
    background:var(--white);
    color:var(--text);
    line-height:1.65;
    position:relative;
    opacity:0;
    transition:opacity .4s ease;
}

body.page-loaded{
    opacity:1;
}

.container{
    width:min(1180px,92%);
    margin:auto;
}

/* ==========================
   NAVBAR
========================== */

header{
    position:sticky;
    top:0;
    z-index:1000;
    background:var(--header-bg);
    border-bottom:1px solid var(--border);
}

.nav{
    min-height:108px;
    position:relative;
    display:flex;
    align-items:center;
    gap:14px;
}

.logo{
    display:flex;
    align-items:center;
    flex-shrink:0;
}

.logo a{
    display:flex;
    align-items:center;
}

.logo img{
    width:170px;
    height:auto;
    border-radius:6px;
    display:block;
}

nav{
    flex:1 1 auto;
    min-width:0;
    display:flex;
    gap:10px;
    flex-wrap:nowrap;
    align-items:stretch;
    justify-content:center;
}

nav a{
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    text-decoration:none;
    color:var(--nav-text);
    background:var(--nav-pill-bg);
    font-weight:400;
    font-size:13px;
    line-height:1.2;
    padding:10px 7px;
    white-space:nowrap;
    transition:.2s;
    border-radius:6px;
    flex:0 0 auto;
}

nav a:hover{
    background:#c3e4f1;
}

.nav-primary,
.nav-secondary{
    display:contents;
}

/* Language toggle */

.lang-toggle{
    display:flex;
    gap:4px;
    flex-shrink:0;
}

.lang-btn{
    border:1px solid var(--border);
    background:var(--white);
    padding:9px 16px;
    border-radius:5px;
    font-weight:700;
    font-size:15px;
    color:var(--nav-text);
    cursor:pointer;
    transition:.2s;
}

.lang-btn.active{
    background:var(--brand-blue);
    border-color:var(--brand-blue);
    color:var(--white);
}

/* ==========================
   HERO / BANNER
========================== */

.hero{
    padding-top:30px;
}

.hero-carousel{
    width:min(1180px,92%);
    margin:0 auto;
    border-radius:6px;
    overflow-x:auto;
    overflow-y:hidden;
}

.hero-carousel .photo-slide{
    aspect-ratio:1920/776;
    background:var(--brand-blue);
    box-shadow:none;
    border-radius:0;
}

.photo-carousel{
    display:flex;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    gap:0;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
}

.photo-carousel::-webkit-scrollbar{
    display:none;
}

.photo-slide{
    flex:0 0 100%;
    scroll-snap-align:center;
    background:var(--brand-blue);
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    position:relative;
}

.photo-slide img{
    position:relative;
    z-index:1;
    width:100%;
    height:100%;
    object-fit:cover;
}

.carousel-dots{
    display:flex;
    justify-content:center;
    gap:10px;
    margin:26px 0 40px;
}

.carousel-dots span{
    width:9px;
    height:9px;
    border-radius:50%;
    background:#c3d3ea;
    cursor:pointer;
    transition:.25s;
}

.carousel-dots span.active{
    background:var(--brand-blue);
    width:24px;
    border-radius:5px;
}

.mini-banner-section{
    padding:8px 0 34px;
}

.mini-carousel{
    width:min(1180px,92%);
    margin:0 auto;
    border-radius:6px;
    overflow-x:auto;
    overflow-y:hidden;
}

.mini-carousel .photo-slide{
    aspect-ratio:1600/378;
    background:var(--brand-blue);
    box-shadow:none;
    border-radius:0;
}

.mini-carousel .photo-slide img{
    object-fit:fill;
}

.mini-banner-section .carousel-dots{
    margin:14px 0 0;
}

.instagram-banner-link{
    display:block;
    transition:opacity .2s;
}

.instagram-banner-link:hover{
    opacity:.85;
}

.instagram-banner-carousel .photo-slide{
    aspect-ratio:1934/327;
    background:var(--white);
}

.instagram-banner-carousel .photo-slide img{
    object-fit:contain;
}

.footer-social-section{
    padding:22px 0 6px;
}

/* ==========================
   WELCOME SECTION
========================== */

.welcome-section{
    padding:36px 0 44px;
}

.welcome-grid{
    display:grid;
    grid-template-columns:1.15fr 1fr;
    gap:36px;
    align-items:start;
    background:var(--gray-box);
    border-radius:6px;
    padding:34px 36px;
}

.welcome-text h2{
    font-size:19px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.2px;
    color:var(--nav-text);
    line-height:1.35;
    margin-bottom:18px;
}

.welcome-text p{
    color:var(--text);
    font-size:15px;
    text-align:justify;
    margin-bottom:14px;
}

.welcome-text p strong{
    color:var(--text);
    font-weight:400;
}

.presidents-heading{
    font-size:18px;
    font-weight:800;
    color:var(--nav-text);
    text-align:center;
    text-transform:uppercase;
    margin:0 0 16px;
}

.president-cards{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:0;
}

.president-card{
    text-align:center;
}

.president-card img{
    width:100%;
    border-radius:4px;
    object-fit:cover;
    aspect-ratio:3/4;
    margin-bottom:10px;
    display:block;
}

.president-card img.portrait-photo{
    object-fit:contain;
    aspect-ratio:12/25;
    background:var(--gray-box);
}

.president-card strong{
    display:block;
    font-size:14.5px;
    font-weight:400;
    color:var(--nav-text);
    line-height:1.3;
}

@media(max-width:900px){

    .welcome-grid{
        grid-template-columns:1fr;
    }

}

/* ==========================
   PLAIN CONTENT SECTIONS (Committee / Speakers / Courses / Abstracts)
========================== */

.content-section-plain{
    padding:34px 0;
}

.content-section-plain h2{
    font-size:22px;
    font-weight:800;
    text-transform:uppercase;
    color:var(--nav-text);
    margin-bottom:24px;
}

.committee-page-section{
    padding-top:40px;
}

.back-link{
    display:inline-block;
    color:var(--text-muted);
    text-decoration:none;
    font-size:14.5px;
    font-weight:600;
    margin-bottom:22px;
    transition:.2s;
}

.back-link:hover{
    color:var(--brand-blue);
}

.speaker-photo.committee-photo{
    aspect-ratio:1010/1306;
}

/* Speakers */

.speakers-grid{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:20px;
}

.speakers-grid-5{
    grid-template-columns:repeat(5,1fr);
}

.speakers-grid-main{
    grid-template-columns:repeat(6,1fr);
}

.org-committee-heading{
    font-size:20px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.2px;
    color:var(--nav-text);
    text-align:center;
    margin:50px 0 26px;
}

.speaker-card{
    text-align:center;
}

.speaker-photo{
    position:relative;
    width:100%;
    aspect-ratio:1/1.05;
    border-radius:4px;
    overflow:visible;
    background:var(--gray-box);
}

.speaker-photo:has(img.portrait-photo){
    width:62%;
    aspect-ratio:12/25;
    margin:0 auto;
}

.speaker-photo img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:4px;
    display:block;
}

.chair-tag{
    display:block;
    margin-top:4px;
    font-size:11.5px;
    font-weight:600;
    color:var(--text-muted);
}

.omp-word{
    font-weight:400;
}

.flag-badge{
    position:absolute;
    left:-6px;
    bottom:-6px;
    width:36px;
    height:36px;
    border-radius:50%;
    background:var(--white);
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 2px 6px rgba(0,0,0,.25);
    border:2px solid var(--white);
    overflow:hidden;
}

.flag-badge svg{
    width:100%;
    height:100%;
    display:block;
}

.speaker-card h4{
    margin-top:14px;
    font-size:15px;
    font-weight:400;
    color:var(--nav-text);
    line-height:1.3;
}

/* More speakers reveal */

.more-speakers-wrap{
    text-align:center;
}

.more-speakers{
    max-height:0;
    overflow:hidden;
    opacity:0;
    transition:max-height .5s ease,opacity .5s ease,margin .5s ease;
    margin-top:0;
}

.more-speakers.open{
    max-height:4000px;
    opacity:1;
    margin-top:20px;
}

/* Full-bleed bars */

.wide-bar{
    display:block;
    width:100%;
    text-align:center;
    text-decoration:none;
    font-weight:800;
    font-size:17px;
    text-transform:uppercase;
    letter-spacing:.3px;
    padding:20px 20px;
    cursor:pointer;
    border:none;
    margin-top:30px;
}

.wide-bar-light{
    background:var(--light-bar);
    color:var(--nav-text);
}

.wide-bar-light:hover{
    background:#79cdf3;
}

.wide-bar-dark{
    background:#c0392b;
    color:var(--white);
}

.wide-bar-dark:hover{
    background:#a5311f;
}

.abstracts-btn{
    max-width:none;
}

/* Модальное окно с правилами оформления тезисов */

body.modal-open{
    overflow:hidden;
}

.modal-overlay{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(20,30,45,.6);
    z-index:2000;
    align-items:center;
    justify-content:center;
    padding:20px;
}

.modal-overlay.open{
    display:flex;
}

.modal-box{
    position:relative;
    background:var(--white);
    max-width:640px;
    width:100%;
    max-height:85vh;
    overflow-y:auto;
    padding:36px 32px;
    border-radius:6px;
    box-shadow:0 20px 60px rgba(0,0,0,.35);
}

.modal-box h3{
    color:var(--brand-blue-dark);
    font-size:22px;
    margin-bottom:18px;
    padding-right:20px;
}

.modal-box h4{
    color:var(--brand-blue-dark);
    font-size:16px;
    margin:22px 0 10px;
}

.modal-list{
    padding-left:20px;
    color:var(--text);
    font-size:14.5px;
}

.modal-list li{
    margin-bottom:8px;
}

.modal-close{
    position:absolute;
    top:14px;
    right:16px;
    background:none;
    border:none;
    font-size:26px;
    line-height:1;
    cursor:pointer;
    color:var(--text-muted);
}

.modal-close:hover{
    color:var(--text);
}

.modal-continue-btn{
    display:block;
    width:100%;
    text-align:center;
    margin-top:26px;
}

/* Abstract submission form panel */

.abstracts-form-panel{
    max-height:0;
    overflow:hidden;
    opacity:0;
    transition:max-height .5s ease,opacity .5s ease,margin .5s ease;
    margin-top:0;
}

.abstracts-form-panel.open{
    max-height:5000px;
    opacity:1;
    margin-top:30px;
}

.form-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:22px 26px;
}

.form-group{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.form-group.full{
    grid-column:1/-1;
}

.form-grid > .btn.cancellation-toggle-btn,
.form-grid > .cancellation-consent-line,
.form-grid > .pay-split-bar{
    grid-column:1/-1;
}

.form-group label{
    font-size:14.5px;
    font-weight:600;
    color:var(--text);
}

.field-label-line{
    display:flex;
    align-items:baseline;
    flex-wrap:wrap;
    gap:2px 6px;
}

.field-hint{
    font-size:14.5px;
    font-weight:600;
    color:var(--text);
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select{
    padding:13px 14px;
    border:none;
    border-bottom:2px solid var(--nav-text);
    background:var(--gray-box);
    font-family:inherit;
    font-size:15px;
    color:var(--text);
    border-radius:3px 3px 0 0;
    width:100%;
}

.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus{
    outline:none;
    border-bottom-color:var(--brand-blue);
    background:#dfe4e2;
}

.form-group select{
    cursor:pointer;
}

.file-upload-spacer{
    display:block;
    height:20.5px;
}

.file-upload{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:13px 16px;
    background:var(--gray-box);
    border-radius:3px 3px 0 0;
    border-bottom:2px solid var(--nav-text);
    cursor:pointer;
    font-size:15px;
    color:var(--text);
    transition:.2s;
}

.file-upload.invalid{
    border-bottom-color:#c0392b;
    background:#fdecea;
}

.field-error{
    display:none;
    color:#c0392b;
    font-size:13.5px;
    font-weight:600;
    margin:6px 0 0;
}

.field-error.show{
    display:block;
}

.file-upload-text{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    flex:1;
    margin-right:10px;
}

.file-upload:hover{
    background:#dfe4e2;
}

.file-upload .file-plus{
    font-size:19px;
    font-weight:700;
    color:var(--nav-text);
    line-height:1;
}

.file-upload input[type="file"],
#af-file{
    display:none;
}

.form-submit-wrap{
    grid-column:1/-1;
    text-align:center;
    margin-top:10px;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:12px;
}

.abstracts-submit-btn{
    min-width:220px;
    text-align:center;
}

/* Разделённая пополам синяя плашка оплаты — визуальный стиль скопирован
   с красной кнопки политики отмены (.btn.cancellation-toggle-btn), но
   синего цвета и поделена на две равные половины */

.pay-split-bar{
    margin:24px 0 4px;
    display:flex;
    align-items:stretch;
    width:100%;
    border-radius:6px;
    overflow:hidden;
    box-shadow:0 6px 18px rgba(50,99,178,.22);
}

.pay-split-btn{
    flex:1 1 50%;
    border:none;
    background:var(--brand-blue);
    color:#fff;
    text-align:center;
    font-size:16px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.3px;
    padding:20px 16px;
    cursor:pointer;
    transition:background .2s ease;
    font-family:inherit;
    line-height:1.25;
}

.pay-split-btn:hover{
    background:var(--brand-blue-dark);
}

.pay-split-btn:disabled{
    opacity:.65;
    cursor:not-allowed;
}

.pay-split-divider{
    width:2px;
    flex-shrink:0;
    background:rgba(255,255,255,.35);
}

@media (max-width:560px){

    .pay-split-bar{
        flex-direction:column;
    }

    .pay-split-divider{
        width:100%;
        height:2px;
    }

    .pay-split-btn{
        font-size:15px;
        padding:18px 14px;
    }

}

.widget-modal-box{
    max-width:640px;
    padding:32px 34px 30px;
}

/* Плавно всплывающее окно способов оплаты (второй кнопки) — чистый
   белый фон, без посторонних цветов, аккуратное появление вместо
   мгновенного display:flex */

.pay-modal-overlay{
    display:flex;
    background:rgba(20,30,45,.55);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .28s ease,visibility 0s linear .28s;
}

.pay-modal-overlay.open{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transition:opacity .28s ease;
}

.pay-modal-box{
    background:#ffffff;
    transform:translateY(22px) scale(.95);
    opacity:0;
    transition:transform .32s cubic-bezier(.22,.85,.32,1),opacity .26s ease;
}

.pay-modal-overlay.open .pay-modal-box{
    transform:translateY(0) scale(1);
    opacity:1;
}

.widget-modal-box h3{
    font-size:18px;
    margin-bottom:10px;
}

.widget-modal-frame-wrap{
    width:100%;
    height:120px;
    border-radius:6px;
    overflow:hidden;
}

.widget-modal-frame{
    display:block;
    border:none;
    width:100%;
    height:100%;
}

.wallet-options-wrap{
    margin-top:16px;
    padding-top:14px;
    border-top:1px solid #e3e7ee;
    display:none;
}

.wallet-options-wrap.has-wallets{
    display:block;
}

.wallet-options-title{
    font-size:13px;
    color:var(--text-muted);
    margin-bottom:10px;
}

.wallet-options-list{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.wallet-options-list.logo-grid{
    gap:16px;
}

/* Способы оплаты — крупные плитки с логотипами вместо текстовых кнопок.
   Логотипы приходят разных пропорций и с разным собственным фоном,
   поэтому кладём их на белую карточку с отступами и object-fit:contain,
   чтобы каждый логотип целиком помещался и не искажался */

.wallet-option-btn{
    background:#ffffff;
    border:1px solid #eaedf3;
    padding:14px;
    width:168px;
    height:108px;
    border-radius:14px;
    overflow:hidden;
    cursor:pointer;
    box-shadow:0 2px 10px rgba(20,30,45,.08);
    transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
    opacity:0;
    animation:walletTileIn .35s ease forwards;
}

@keyframes walletTileIn{
    from{ opacity:0; transform:translateY(8px) scale(.94); }
    to{ opacity:1; transform:translateY(0) scale(1); }
}

.wallet-option-btn img{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
}

.wallet-option-btn:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 22px rgba(20,30,45,.18);
    border-color:var(--brand-blue);
}

.wallet-option-btn:active{
    transform:translateY(-1px) scale(.97);
}

.wallet-option-btn.selected{
    box-shadow:0 0 0 3px var(--brand-blue),0 10px 22px rgba(20,30,45,.18);
}

.installment-months-list{
    margin-top:8px;
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

/* Срок рассрочки (в месяцах) — это число, а не бренд, поэтому остаётся
   аккуратной текстовой «таблеткой», а не логотипом */

.installment-month-btn{
    background:#f2f5fa;
    border:1px solid #dde3ec;
    color:var(--text);
    padding:9px 16px;
    border-radius:20px;
    font-size:13.5px;
    font-weight:600;
    cursor:pointer;
    transition:background .2s ease,border-color .2s ease,color .2s ease,transform .15s ease;
}

.installment-month-btn:hover{
    background:var(--brand-blue);
    border-color:var(--brand-blue);
    color:#fff;
    transform:translateY(-2px);
}

.modal-box.modal-box-success{
    max-width:420px;
    text-align:center;
    padding:44px 32px;
}

.form-success-text{
    color:var(--brand-blue-dark);
    font-weight:700;
    font-size:17px;
    margin:0;
}

.form-success-text + .form-success-text{
    margin-top:14px;
    font-weight:500;
    font-size:15px;
}

.form-error{
    display:none;
    text-align:center;
    color:#c0392b;
    font-weight:600;
    font-size:14.5px;
    margin-top:16px;
}

.form-error.show{
    display:block;
}

.abstracts-submit-btn:disabled{
    opacity:.65;
    cursor:not-allowed;
}

.form-group.form-centered{
    align-items:center;
    text-align:center;
}

.form-group.form-centered input,
.form-group.form-centered select{
    max-width:320px;
}

.form-group .option-line{
    display:flex;
    align-items:flex-start;
    gap:10px;
    font-size:14.5px;
    font-weight:400;
    color:var(--text);
    cursor:pointer;
    padding:4px 0;
    text-align:left;
}

.form-group .option-line input[type="checkbox"],
.form-group .option-line input[type="radio"]{
    width:18px;
    height:18px;
    flex-shrink:0;
    margin-top:2px;
    accent-color:var(--brand-blue);
    cursor:pointer;
}

.form-group .option-line.consent-line{
    font-weight:600;
    margin-top:6px;
}

.register-btn{
    margin:24px 0 4px;
}

.btn.cancellation-toggle-btn{
    margin:24px 0 4px;
    background:#c0392b;
    display:block;
    width:100%;
    text-align:center;
    font-size:17px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.3px;
    padding:20px 30px;
}

.btn.cancellation-toggle-btn:hover{
    background:#a5311f;
}

.modal-box h3.cancellation-modal-heading{
    color:#c0392b;
}

.cancellation-consent-line{
    display:flex;
    align-items:flex-start;
    gap:10px;
    font-size:14.5px;
    font-weight:600;
    color:var(--text);
    cursor:pointer;
    margin:6px 0 20px;
}

.cancellation-consent-line input[type="checkbox"]{
    width:18px;
    height:18px;
    flex-shrink:0;
    margin-top:2px;
    accent-color:#c0392b;
    cursor:pointer;
}

.cancellation-consent-line.invalid{
    color:#c0392b;
    background:#fdecea;
    outline:2px solid #c0392b;
    outline-offset:6px;
    border-radius:3px;
}

.category-total{
    font-size:15px;
    font-weight:400;
    color:var(--nav-text);
    margin:10px 0 0;
    text-align:left;
}

.category-toggle-btn{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:13px 16px;
    background:var(--gray-box);
    border:none;
    border-radius:3px 3px 0 0;
    border-bottom:2px solid var(--nav-text);
    cursor:pointer;
    font-size:15px;
    font-family:inherit;
    color:var(--text);
    width:100%;
    text-align:left;
    transition:.2s;
}

.category-toggle-btn:hover{
    background:#dfe4e2;
}

.category-toggle-btn::after{
    content:"▾";
    font-size:12px;
    color:var(--nav-text);
    margin-left:10px;
    flex-shrink:0;
}

.category-toggle-btn.open::after{
    content:"▴";
}

.category-panel{
    max-height:0;
    overflow:hidden;
    opacity:0;
    display:flex;
    flex-direction:column;
    gap:6px;
    transition:max-height .4s ease,opacity .4s ease,margin .4s ease;
    margin-top:0;
}

.category-panel.open{
    max-height:300px;
    opacity:1;
    margin-top:12px;
}

/* Промокод */

.promo-banner{
    font-size:14.5px;
    color:#2b2b2b;
    font-weight:700;
    background:#fffbcc;
    border-left:4px solid #ffe45e;
    padding:14px 18px;
    margin:0;
}

.promo-panel{
    display:flex;
    flex-direction:column;
    gap:14px;
    margin-top:16px;
}

.promo-fields{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:16px 18px;
}

@media (max-width:700px){

    .promo-fields{
        grid-template-columns:1fr;
    }

}

.promo-hint{
    font-size:12.5px;
    color:#c0392b;
    font-weight:700;
    font-style:normal;
    margin:0;
}

/* Поле телефона с выбором кода страны */

.phone-input-group{
    position:relative;
    display:flex;
}

.phone-country-btn{
    display:flex;
    align-items:center;
    gap:6px;
    padding:0 12px;
    background:var(--gray-box);
    border:none;
    border-bottom:2px solid var(--nav-text);
    border-radius:3px 0 0 0;
    font-family:inherit;
    font-size:14.5px;
    color:var(--text);
    cursor:pointer;
    flex-shrink:0;
    height:47px;
    transition:.2s;
}

.phone-country-btn:hover{
    background:#dfe4e2;
}

.phone-country-flag{
    font-size:17px;
    line-height:1;
}

.phone-country-arrow{
    font-size:10px;
    color:var(--nav-text);
    margin-left:2px;
}

.phone-input-group .phone-number-input{
    flex:1;
    min-width:0;
    height:47px;
    border-radius:0 3px 0 0;
}

.phone-country-dropdown{
    display:none;
    position:absolute;
    top:calc(100% + 4px);
    left:0;
    width:280px;
    max-width:90vw;
    max-height:280px;
    background:#fff;
    border:1px solid var(--border);
    border-radius:4px;
    box-shadow:0 8px 24px rgba(0,0,0,.15);
    z-index:50;
    overflow:hidden;
    flex-direction:column;
}

.phone-country-dropdown.open{
    display:flex;
}

.phone-country-search{
    padding:11px 12px;
    border:none;
    border-bottom:1px solid var(--border);
    font-family:inherit;
    font-size:14px;
    color:var(--text);
    width:100%;
}

.phone-country-search:focus{
    outline:none;
    background:var(--gray-box);
}

.phone-country-list{
    overflow-y:auto;
}

.phone-country-option{
    display:flex;
    align-items:center;
    gap:9px;
    padding:9px 12px;
    cursor:pointer;
    font-size:13.5px;
    color:var(--text);
    background:none;
    border:none;
    width:100%;
    text-align:left;
    font-family:inherit;
}

.phone-country-option:hover{
    background:var(--gray-box);
}

.phone-country-option .flag{
    font-size:16px;
    flex-shrink:0;
}

.phone-country-option .name{
    flex:1;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.phone-country-option .dial{
    color:var(--text-muted);
    flex-shrink:0;
}

.promo-code-row{
    display:flex;
    align-items:flex-end;
    gap:12px;
    flex-wrap:wrap;
}

.promo-code-group{
    max-width:220px;
    flex:0 0 auto;
    width:100%;
}

.promo-code-input{
    height:47px;
}

.promo-activate-btn{
    height:47px;
    padding:0 22px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:var(--brand-blue-dark);
    border:none;
    border-radius:3px;
    color:#fff;
    font-family:inherit;
    font-size:14.5px;
    font-weight:700;
    cursor:pointer;
    transition:.2s;
    white-space:nowrap;
}

.promo-activate-btn:hover{
    opacity:.88;
}

.promo-total{
    font-size:15px;
    font-weight:700;
    color:#2e7d32;
    margin:0;
    min-height:16px;
}

.form-group input.invalid{
    border-bottom-color:#c0392b;
    background:#fdecea;
}

.promo-message{
    font-size:13px;
    font-weight:400;
    margin:0;
    min-height:16px;
}

.promo-message.success{
    color:#2e7d32;
}

.promo-message.error{
    color:#c0392b;
}

.type-options{
    display:flex;
    flex-wrap:wrap;
    gap:8px 28px;
}

.wide-bar.more-speakers-btn{
    width:min(1180px,92%);
    margin-left:auto;
    margin-right:auto;
}

#registrationDetails .wide-bar-dark{
    width:100%;
    margin-left:0;
    margin-right:0;
}

/* Data table */

.data-table{
    width:100%;
    border-collapse:collapse;
    background:var(--white);
    border:1px solid var(--border);
    margin:30px 0 16px;
}

.data-table th,
.data-table td{
    padding:10px 20px;
    text-align:left;
    border-bottom:1px solid var(--border);
    color:var(--text-muted);
    line-height:1.25;
}

.data-table th{
    background:var(--gray-box);
    color:var(--nav-text);
    font-weight:700;
    text-transform:uppercase;
    font-size:13.5px;
}

.data-table td{
    color:var(--text);
}

.data-table tr:last-child td{
    border-bottom:none;
}

.data-table tr.row-congress td{
    background:var(--nav-pill-bg);
    color:var(--nav-text);
}

.data-table tr.row-course td{
    background:var(--nav-pill-bg);
    color:var(--nav-text);
}

.data-table.pricing-table{
    table-layout:fixed;
}

.data-table.pricing-table th:first-child,
.data-table.pricing-table td:first-child{
    width:56%;
    white-space:normal;
}

.data-table.pricing-table th:not(:first-child),
.data-table.pricing-table td:not(:first-child){
    width:22%;
    text-align:center;
    white-space:nowrap;
}

/* Цифры в цене выстраиваются в столбик друг под другом (260 ровно над
   150 и т.д.), а разделитель "|" — отдельной колонкой строго друг под
   другом, независимо от того, сколько цифр в каждой сумме */

/* "1fr auto 1fr" сам по себе НЕ даёт равные колонки, если контента почти
   ровно на всю ширину ячейки — тогда у fr-колонок просто не остаётся
   свободного места, чтобы его делить поровну, и каждая колонка сжимается
   по своему тексту (поэтому в одной строке разделитель мог сместиться).
   Чтобы разделитель гарантированно стоял на одном месте в любой строке,
   ширина сумм в USD и в AZN зафиксирована в ch (а не считается по
   содержимому) — так столбик всегда одной и той же ширины */

.price-cell{
    display:inline-flex;
    align-items:center;
    gap:8px;
}

.price-usd{
    width:8ch;
    text-align:right;
    white-space:nowrap;
    flex:none;
    font-weight:700;
}

.price-azn{
    width:10ch;
    text-align:left;
    white-space:nowrap;
    flex:none;
    color:#757575;
}

.price-sep{
    color:var(--text-muted);
    flex:none;
}

.info-table{
    border:none;
    margin:0 0 32px;
}

.info-table th,
.info-table td{
    background:var(--white);
    border-bottom:none;
    padding:4px 0;
}

.info-table th{
    padding-top:0;
}

.info-table td{
    padding-bottom:0;
}

.secretariat-note{
    color:#000;
}

.email-bold{
    font-weight:700;
    color:#000;
}

.placeholder{
    color:#9aa5bb;
    font-style:italic;
}

.reg-note{
    font-size:14px;
    color:#000000;
    font-weight:700;
    background:#fffbcc;
    border-left:4px solid #ffe45e;
    padding:14px 18px;
    margin:28px 0 16px;
}

.closing-note{
    font-size:15.5px;
    font-weight:700;
    color:var(--brand-blue-dark);
    margin:26px 0 0;
}

.program-download-btn{
    margin-top:6px;
}

/* Registration section */

#registration{
    padding-bottom:40px;
}

#registrationDetails{
    padding-top:30px;
}

#registrationDetails h2{
    font-size:22px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.2px;
    color:var(--nav-text);
    margin-bottom:6px;
}

.reg-subtitle{
    font-size:15.5px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.3px;
    color:var(--nav-text);
    border-left:4px solid var(--accent-gold);
    padding-left:12px;
    margin:34px 0 4px;
}

.reg-info-cards{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:18px;
    margin:18px 0 4px;
}

.reg-info-card{
    background:var(--gray-box);
    border-radius:6px;
    padding:22px 24px;
}

.reg-info-card h4{
    font-size:14.5px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.2px;
    color:var(--nav-text);
    margin-bottom:8px;
}

.reg-info-card p{
    color:var(--text-muted);
    font-size:14.5px;
    margin:0;
}

.contact-toggle-btn{
    margin-top:30px;
}

.btn{
    display:inline-block;
    padding:14px 30px;
    background:var(--brand-blue);
    color:var(--white);
    border:none;
    border-radius:4px;
    text-decoration:none;
    font-weight:700;
    cursor:pointer;
    transition:.2s;
}

.btn:hover{
    background:var(--brand-blue-dark);
}

/* Contact panel (мессенджеры) */

.contact-panel{
    max-height:0;
    overflow:hidden;
    opacity:0;
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:14px;
    padding:14px 0 0;
    transition:max-height .5s ease,opacity .5s ease,margin .5s ease;
    margin-top:0;
    position:relative;
    z-index:1;
}

.contact-panel.open{
    max-height:280px;
    opacity:1;
    margin-top:20px;
    overflow:visible;
}

.contact-chip-wrap{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:8px;
    text-decoration:none;
    position:relative;
    z-index:1;
}

.contact-chip-wrap:hover,
.contact-chip-wrap:focus-visible{
    z-index:5;
}

.contact-chip{
    display:flex;
    align-items:center;
    justify-content:center;
    width:52px;
    height:52px;
    transition:.25s;
    color:white;
    background:transparent;
    overflow:visible;
    position:relative;
}

.contact-chip img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
    filter:drop-shadow(0 6px 14px rgba(0,0,0,.18));
    transition:filter .25s;
}

.contact-chip-wrap:hover .contact-chip{
    transform:translateY(-4px) scale(1.06);
}

.chip-label{
    font-size:13px;
    font-weight:600;
    color:var(--text-muted);
    transition:.2s;
}

.contact-chip-wrap:hover .chip-label{
    color:var(--text);
}

/* ==========================
   Scroll reveal
========================== */

.hidden{
    opacity:0;
    transform:translateY(24px);
    transition:.7s cubic-bezier(.2,.7,.2,1);
}

.show{
    opacity:1;
    transform:translateY(0);
}

/* ==========================
   FOOTER
========================== */

footer{
    padding:0 0 30px;
    border-top:1px solid var(--border);
    color:var(--text-muted);
    font-size:13.5px;
}

.footer-info-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
    text-align:left;
    padding:36px 0 24px;
}

.footer-info-heading{
    font-size:14px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.3px;
    color:var(--brand-blue-dark);
    margin-bottom:10px;
}

.footer-info-text{
    font-size:14px;
    color:var(--text-muted);
    line-height:1.6;
    margin-bottom:4px;
}

.footer-info-text a{
    color:var(--text-muted);
    text-decoration:none;
}

.footer-info-text a:hover{
    color:var(--brand-blue);
    text-decoration:underline;
}

.footer-bottom{
    text-align:center;
    padding-top:20px;
    border-top:1px solid var(--border);
}

@media(max-width:760px){

    .footer-info-grid{
        grid-template-columns:1fr;
        gap:20px;
        text-align:center;
    }

}

/* ==========================
   Back To Top
========================== */

.top-button{
    position:fixed;
    right:25px;
    bottom:25px;
    width:52px;
    height:52px;
    border:none;
    border-radius:50%;
    background:var(--brand-blue);
    color:white;
    font-size:22px;
    cursor:pointer;
    box-shadow:0 8px 20px rgba(50,99,178,.35);
    opacity:0;
    pointer-events:none;
    transition:.3s;
}

.top-button:hover{
    background:var(--brand-blue-dark);
}

.top-button.visible{
    opacity:1;
    pointer-events:auto;
}

/* ==========================
   RESPONSIVE
========================== */

@media(max-width:900px){

    .speakers-grid-5{
        grid-template-columns:repeat(3,1fr);
    }

}

@media(max-width:1260px){

    .nav{
        min-height:auto;
        padding:14px 0;
        gap:10px;
        flex-wrap:nowrap;
        align-items:center;
    }

    .logo img{
        width:81px;
    }

    nav{
        flex:1 1 auto;
        min-width:0;
        flex-wrap:nowrap;
        justify-content:center;
        gap:6px;
        overflow:visible;
        border-radius:0;
    }

    nav a{
        flex:1 1 0;
        min-width:0;
        font-size:11.5px;
        line-height:1.2;
        padding:8px 8px;
        white-space:normal;
        word-break:keep-all;
        letter-spacing:normal;
        border-right:none;
        background:var(--nav-pill-bg);
        border-radius:6px;
        text-align:center;
    }

    .lang-toggle{
        flex-shrink:0;
        gap:6px;
    }

    .lang-btn{
        padding:7px 13px;
        font-size:12px;
    }

}

@media(max-width:700px){

    .nav{
        display:grid;
        grid-template-columns:auto 1fr auto;
        grid-template-areas:
            "logo primary lang"
            "secondary secondary secondary";
        width:100%;
        align-items:center;
        padding:16px 10px;
        row-gap:12px;
        column-gap:6px;
        min-height:auto;
    }

    .logo{
        grid-area:logo;
        flex-shrink:0;
    }

    .logo img{
        width:auto;
        height:36px;
    }

    nav{
        display:contents;
    }

    .nav-primary{
        grid-area:primary;
        display:flex;
        min-width:0;
        gap:6px;
        overflow:visible;
    }

    .nav-primary a{
        flex:1 1 0;
        min-width:0;
        white-space:normal;
        word-break:keep-all;
    }

    .lang-toggle{
        grid-area:lang;
        flex-shrink:0;
        gap:5px;
    }

    .lang-btn{
        padding:6px 10px;
        font-size:11px;
    }

    .nav-secondary{
        grid-area:secondary;
        display:flex;
        width:100%;
        gap:6px;
    }

    nav a{
        flex:0 0 auto;
        min-width:0;
        font-size:12px;
        line-height:1.2;
        padding:9px 13px;
        white-space:nowrap;
        text-align:center;
        letter-spacing:normal;
        background:var(--nav-pill-bg);
        border-radius:6px;
    }

    .nav-secondary a{
        flex:1 1 0;
        min-width:0;
        padding:9px 4px;
        white-space:normal;
        word-break:keep-all;
        font-size:11px;
    }

    .welcome-grid{
        padding:22px;
    }

    .president-cards{
        gap:10px;
    }

    .speakers-grid-5{
        grid-template-columns:repeat(2,1fr);
    }

    #moreSpeakers .speaker-card:last-child{
        grid-column:span 2;
    }

    #moreSpeakers .speaker-card:last-child .speaker-photo:has(img.portrait-photo){
        width:31%;
    }

    .data-table:not(.pricing-table){
        display:block;
        overflow-x:auto;
        white-space:nowrap;
        -webkit-overflow-scrolling:touch;
    }

    /* На узких экранах цену (например "260 USD | 455 AZN") нельзя
       переносить на вторую строку — поэтому таблица переходит на
       "резиновую" раскладку: ширину колонок с ценой диктует их
       содержимое (nowrap), а колонка категории просто занимает то, что
       осталось, и переносится сама */
    .data-table.pricing-table{
        table-layout:auto;
    }

    .data-table.pricing-table th,
    .data-table.pricing-table td{
        padding:10px 6px;
        font-size:12px;
    }

    .data-table.pricing-table th:first-child,
    .data-table.pricing-table td:first-child{
        width:auto;
    }

    .data-table.pricing-table th:not(:first-child),
    .data-table.pricing-table td:not(:first-child){
        width:1%;
    }

    .reg-info-cards{
        grid-template-columns:1fr;
    }

    .contact-panel{
        gap:6px;
        flex-wrap:nowrap;
    }

    .contact-chip-wrap{
        gap:4px;
    }

    .contact-chip{
        width:38px;
        height:38px;
    }

    .chip-label{
        font-size:9px;
        max-width:42px;
        text-align:center;
        line-height:1.15;
        white-space:normal;
    }

    .hero-carousel{
        width:min(1180px,92%);
    }

    .btn.cancellation-toggle-btn{
        width:100%;
    }

    .field-hint{
        font-size:12px;
    }

    .field-label-line{
        flex-direction:column;
        align-items:flex-start;
        gap:0;
    }

}

/* ==========================
   Admin access (hidden footer trigger + password gate)
========================== */

.admin-access-btn{
    display:block;
    width:130px;
    height:22px;
    margin:10px auto 0;
    padding:0;
    background:transparent;
    border:none;
    color:transparent;
    font-size:11px;
    line-height:22px;
    cursor:default;
    outline:none;
    -webkit-tap-highlight-color:transparent;
}

.admin-auth-box{
    max-width:380px;
}

.admin-auth-box .form-group{
    margin-bottom:6px;
}

.admin-auth-error{
    color:#c0392b;
    font-size:13.5px;
    margin:8px 0 4px;
    display:none;
}

.admin-auth-error.show{
    display:block;
}

.admin-auth-submit{
    display:block;
    width:100%;
    text-align:center;
    margin-top:16px;
}

/* Admin gallery page */

.admin-gate-note{
    text-align:center;
    color:var(--text-muted);
    font-size:14px;
    margin-top:40px;
}

.admin-gallery-card{
    text-decoration:none;
    color:inherit;
    display:block;
}

.admin-gallery-card .speaker-photo img{
    cursor:pointer;
}

.copy-link-btn{
    display:inline-block;
    margin-top:8px;
    padding:6px 14px;
    font-size:12.5px;
    font-weight:600;
    background:var(--gray-box);
    color:var(--text);
    border:none;
    border-radius:4px;
    cursor:pointer;
    transition:.2s;
}

.copy-link-btn:hover{
    background:var(--nav-pill-bg);
}

.copy-link-btn.copied{
    background:#2ea44f;
    color:var(--white);
}

/* Public person profile page */

.person-profile-card{
    max-width:420px;
    margin:20px auto 0;
    text-align:center;
}

.person-profile-photo{
    width:220px;
    height:220px;
    margin:0 auto 22px;
    border-radius:50%;
    overflow:hidden;
}

.person-profile-photo img{
    border-radius:50%;
}

.person-profile-name{
    color:var(--brand-blue-dark);
    font-size:26px;
    margin-bottom:8px;
}

.person-profile-role{
    display:inline-block;
    margin-bottom:6px;
}

.person-profile-event{
    color:var(--text-muted);
    font-size:14.5px;
    margin-top:10px;
}

/* Privacy policy page */

.privacy-policy-container{
    max-width:860px;
}

.privacy-updated{
    color:var(--text-muted);
    font-size:13.5px;
    margin-bottom:28px;
}

.privacy-policy-container h4{
    color:var(--brand-blue-dark);
    font-size:17px;
    margin:26px 0 10px;
}

.privacy-policy-container h4:first-of-type{
    margin-top:0;
}

.privacy-policy-container p{
    color:var(--text);
    font-size:15px;
    line-height:1.65;
}

/* ==========================
   TEMPLATE-ONLY ADDITIONS
   (demo hero banner + placeholder avatars —
   not part of the original site's CSS)
========================== */

.hero-banner-plain{
    width:min(1180px,92%);
    margin:0 auto;
    border-radius:6px;
    overflow:hidden;
    background:linear-gradient(135deg,var(--brand-blue),var(--brand-blue-dark));
    aspect-ratio:1920/776;
    display:flex;
    align-items:center;
    justify-content:center;
}

.hero-banner-inner{
    max-width:640px;
    padding:20px;
    text-align:center;
}

.hero-banner-inner h1{
    color:var(--white);
    font-size:34px;
    font-weight:800;
    margin-bottom:16px;
    line-height:1.25;
}

.hero-banner-inner p{
    color:rgba(255,255,255,.9);
    font-size:16px;
    margin-bottom:26px;
}

.hero-banner-actions{
    display:flex;
    gap:14px;
    justify-content:center;
    flex-wrap:wrap;
}

.hero-outline-btn{
    background:transparent;
    border:2px solid var(--white);
}

.hero-outline-btn:hover{
    background:rgba(255,255,255,.15);
}

.placeholder-photo{
    display:flex;
    align-items:center;
    justify-content:center;
}

.placeholder-initials{
    font-size:28px;
    font-weight:800;
    color:var(--brand-blue);
    letter-spacing:1px;
}

@media(max-width:700px){

    .hero-banner-plain{
        aspect-ratio:1/1.05;
        border-radius:0;
    }

    .hero-banner-inner h1{
        font-size:24px;
    }

}
