@font-face {
    font-family: 'Academy';
    src: url('fonts/Academy.Kz_.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Izvod';
    src: url('fonts/Izvod.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Academy', serif;
    background: #f7f3ef;
    overflow-x: hidden;
}

.header {
    position: relative;
    width: 100%;
    height: 665px;
    background: url('image/vopros-fon.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.navbar {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    padding: 0;
}

.navbar-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.644);
    z-index: 2;
    height: 80px;
}

.navbar-inner {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    margin: 0 auto;
    padding: 0 32px;
}

.navbar-left,
.navbar-right {
    display: flex;
    gap: 32px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 110px;
    width: 110px;
    min-width: 110px;
    min-height: 110px;
    box-sizing: border-box;
    background: transparent;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 32px;
    z-index: 3;
}

.navbar-logo img {
    width: 90px;
    height: 90px;
    max-width: 90px;
    max-height: 90px;
    object-fit: contain;
    display: block;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    font-size: 2.2rem;
    font-family: 'Academy', serif;
    transition: color 0.2s;
    padding: 12px 28px;
    background: transparent;
    border-radius: 8px;
}

.navbar a:hover {
    color: #e0c97f;
    background: rgba(0, 0, 0, 0.3);
}

.navbar-link-fest {
    white-space: nowrap;
}

.header-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin-left: 0;
    text-align: center;
}

.header-title {
    font-family: 'Izvod', cursive;
    color: #fff;
    font-size: 5.5rem;
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.1;
    text-shadow: 0 2px 16px #000;
}

.faq-block {
    background: #fff;
    padding: 60px 0 40px 0;
    text-align: center;
}

.faq-title {
    font-family: 'Izvod', cursive;
    font-size: 5.7rem;
    color: #111;
    margin-bottom: 40px;
    text-align: left;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 100;
    letter-spacing: 0.5px;
}

.faq-list {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    background: none;
    border-radius: 0;
    margin-bottom: 28px;
    padding: 0 0 0 0;
    box-shadow: none;
    cursor: pointer;
    border-bottom: 1px solid #222;
    position: relative;
    transition: background 0.2s;
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-question {
    font-family: 'Academy', cursive;
    font-size: 2.3rem;
    color: #111;
    font-weight: 100;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0 8px 0;
    cursor: pointer;
}
.faq-arrow {
    font-size: 2rem;
    margin-left: 12px;
    transition: transform 0.3s;
    user-select: none;
    display: inline-block;
}
.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}
.faq-answer {
    font-family: 'Academy', serif;
    font-size: 1.1rem;
    color: #222;
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), padding 0.4s;
    padding: 0 0;
    margin-top: 0;
    line-height: 1.5;
}
.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 8px 0 18px 0;
    margin-top: 0;
}

.faq-answer p {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #575757 ;
}

.ask-form-block {
    background: #fff;
    padding: 40px 0 0 0;
    text-align: center;
}

.ask-form-title {
    font-family: 'Izvod', cursive;
    font-size: 5.7rem;
    color: #111;
    margin-bottom: 32px;
    font-weight: 100;
    text-align: left;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.ask-form {
    max-width: 650px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: stretch;
}

.ask-form input,
.ask-form textarea {
    font-family: 'Academy', serif;
    font-size: 1.7rem;
    border: 1.2px solid #222;
    border-radius: 22px;
    padding: 15px 22px;
    background: #fff;
    color: #222;
    outline: none;
    transition: border-color 0.2s;
    resize: none;
    box-sizing: border-box;
}

.ask-form input::placeholder,
.ask-form textarea::placeholder {
    color: #bdbdbd;
    font-size: 1.7rem;
    font-family: 'Academy', serif;
    opacity: 1;
}

.ask-form input:focus,
.ask-form textarea:focus {
    border-color: #19c94a;
}

.ask-form textarea {
    min-height: 90px;
    max-height: 240px;
}

.ask-form button {
    font-family: 'Academy', serif;
    font-size: 1.6rem;
    color: #fff;
    background: #39c24a;
    border: none;
    border-radius: 36px;
    padding: 15px 0;
    margin-top: 10px;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    max-width: 650px;
    align-self: center;
}

.ask-form button:hover {
    background: #13a53b;
}

.ask-form-status {
    font-size: 1.1rem;
    margin-top: 10px;
    font-family: 'Academy', serif;
    color: #19c94a;
}

.ask-form-policy {
    font-family: 'Academy', serif;
    font-size: 1.08rem;
    color: #222;
    margin-top: 16px;
    text-align: left;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}
.ask-form-policy a {
    color: #19c94a;
    text-decoration: underline;
    transition: color 0.2s;
}
.ask-form-policy a:hover {
    color: #13a53b;
}

.footer {
    background: #000;
    color: #fff;
    padding: 24px 0 10px 0;
    font-family: 'Academy', serif;
    font-size: 1.3rem;
    margin-top: 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 32px;
    flex-wrap: wrap;
    padding-left: 0;
    margin: 0;
}

.footer-logo {
    align-self: flex-start;
    padding: 10px;
}

.footer-logo img {
    width: 130px;
    height: 130px;
    background: #fff;
    border-radius: 50%;
    padding: 8px;
    display: block;
}

.footer-center {
    flex: 1 1 400px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-policy {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    margin-bottom: 8px;
    transition: color 0.2s;
}
.footer-policy:hover {
    color: #e0c97f;
}

.footer-info {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.footer-contacts {
    display: flex;
    flex-direction: row;
    gap: 18px;
    padding-right: 30px;
}

.footer-icon img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    padding: 4px;
    background: transparent;
    transition: border-color 0.2s;
}
.footer-icon img:hover {
    border-color: #e0c97f;
}

/* Мобильная вёрстка — см. mobile.css */

.auth-required {
    text-align: center;
    padding: 20px;
    font-family: 'Academy', serif;
    font-size: 1.1rem;
}

.auth-required .auth-link {
    color: #00C040;
    text-decoration: underline;
}