/* Цвета в стиле chats */
:root {
    --accent: #1EBCCE;
    --accent-dark: #169EAD;
    --accent-10: rgba(30, 188, 206, 0.1);
    --black: #000000;
    --gray-text: #303030;
    --soft-bg: #CFF3F5;
}

/* Базовые стили */
body {
    background: var(--soft-bg);
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.center { text-align: center; }

.section {
    padding: 60px 0;
}

/* Header */
.header {
    background: white;
    border-bottom: 1px solid var(--accent-10);
    padding: 15px 0;
}

.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background:#ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--accent);
    font-weight: bold;
    font-size: 24px;
}
.nav {
    display: flex;
    align-items: center;
    gap: 20px;
}
.nav-link {
    color: var(--black);
    text-decoration: none;
}

/* Кнопки */
.btn-accent {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}
.btn-hero {
    padding: calc(12px * 1.2) calc(25px * 1.2); /* +20% */
    font-size: calc(16px * 1.2);                /* +20% */
    border-radius: calc(8px * 1.2);             /* +20% */
}
.btn-accent:hover {
    background: var(--accent-dark);
}
.btn-accent.full {
    width: 100%;           /* совпадает с шириной инпутов внутри .modal-content */
    box-sizing: border-box;
    margin: 16px 0 0 0;    /* верхний отступ, горизонталей нет */
    display: block;
}

/* Hero */
.hero {
    padding: 100px 0;
}
.hero-title {
    font-size: 42px;
    font-weight: bold;
    color: var(--black);
}
.hero-subtitle {
    color: var(--gray-text);
    margin: 20px 0 30px;
    font-size: 18px;
}
.hero-box { text-align: center; }

.hero-card {
    background: #ffffff;
    padding: 40px 50px;
    border-radius: 16px;
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
}


/* Features */
.features-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.card {
    padding: 20px;
    background: white;
    border-radius: 10px;
    border: 1px solid var(--accent-10);
}
.card-title {
    color: var(--accent);
    font-size: 20px;
    margin-bottom: 10px;
}
.card-text {
    color: var(--gray-text);
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}
.tab-btn {
    padding: 10px 20px;
    border-radius: 8px;
    background: var(--accent-10);
    border: none;
    cursor: pointer;
    color: var(--black);
    transition: 0.2s;
}
.tab-btn.active {
    background: var(--accent);
    color: white;
}
.tab-content {
    display: none;
    padding: 20px;
    background: white;
    border: 1px solid var(--accent-10);
    border-radius: 10px;
}
.tab-content.active {
    display: block;
}

/* Contact */
.contact-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--accent-10);
    width: 100%;
    max-width: 500px;
    margin: auto;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid var(--accent-10);
}
.contacts .container {
    padding-left: 16px;
    padding-right: 16px;
}

#contacts input,
#contacts textarea {
    box-sizing: border-box;
    width: 100%;
}
#contacts .contact-box {
    box-sizing: border-box;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}
.modal.hidden { display: none; }
.modal-content {
    background: white;
    padding: 24px 30px;   /* верх/низ 24px, лев/прав 30px — это желаемый отступ 30px */
    border-radius: 12px;
    position: relative;
    width: 400px;
    box-sizing: border-box; /* важно: padding входит в ширину */
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}
.modal-title {
    font-size: 24px;
    color: var(--accent);
    margin-bottom: 20px;
}
.modal-form input {
    width: 100%;                 /* заполнение внутри .modal-content */
    box-sizing: border-box;      /* padding/бордер учитываются в ширине */
    margin: 10px 0;              /* вертикальные отступы, горизонтали нет */
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--accent-10);
    display: block;
    background: white;
}


/* стили кнопки запомнить меня  */
/* Контейнер */
.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-text);
    margin: 10px 0;         /* верт. отступы; горизонтальных нет — будет начинаться на 30px */
    cursor: pointer;
}
.remember-me input[type="checkbox"] {
    /* оставляем твой кастомный чекбокс, но фиксируем позиционирование относительно контейнера */
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--accent);
    border-radius: 4px;
    cursor: pointer;
    background: white;
    position: relative;
}

/* SVG-галочка на весь размер */
.remember-me input[type="checkbox"]::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent);
    mask: url("data:image/svg+xml;utf8,<svg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path fill='white' d='M20.285 6.709l-11.4 11.4-5.657-5.657 1.414-1.414 4.243 4.243 9.986-9.986z'/></svg>") center / 90% no-repeat;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path fill='white' d='M20.285 6.709l-11.4 11.4-5.657-5.657 1.414-1.414 4.243 4.243 9.986-9.986z'/></svg>") center / 90% no-repeat;

    opacity: 0;
    transition: 0.15s ease;
}

/* При активном состоянии */
.remember-me input[type="checkbox"]:checked::after {
    opacity: 1;
}
