:root {
    --one: #567;
    --two: #789;
	
    --three: #363636;
	--y: #307351;
	--g: #D2D2D2;
	--bg: #1c1c1c;
	--black: #212121;
    --res: 1920;
	
	--f1: 60px;


	--text: #25252b;
	--muted: #727279;

	--accent: #f47d68;
	--accent-dark: #e86b57;
	--accent-light: #fff0ec;

	--cream: #faf6f3;
	--cream-2: #f7f1ed;

	--line: #ebe5e1;

	--white: #ffffff;

	--radius-sm: 12px;
	--radius-md: 18px;

	--shadow: 0 12px 35px rgba(42, 31, 26, 0.07);
	--shadow-hover: 0 18px 45px rgba(42, 31, 26, 0.11);
}
 
*, ::before, ::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
html, body {
	font-family: "Manrope", Arial, sans-serif;
	color: #467;
	/* background: #fff; */
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
	font-optical-sizing: auto;
	font-weight: normal;
	font-style: normal;
	/* font-size: clamp(7px, calc(100vw / 1920 * 10), 10px); */
    font-size: 16px;
}
html {
	scroll-behavior: smooth;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body > footer ~ section, body > section:last-of-type {
    flex-grow: 1;
}
header, footer {
    flex-shrink: 0;
}

        img {
            display: block;
            max-width: 100%;
        }

        button,
        input {
            font: inherit;
        }

        button {
            border: 0;
            cursor: pointer;
        }

        a {
            color: inherit;
            text-decoration: none;
        }
ul {
    list-style-position: inside;
}
		
input[type="text"], input[type="password"], input[type="email"] {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px 15px;
    outline: none;
}
input[type="text"]:focus-visible, input[type="password"]:focus-visible {
    /* outline: none; */
    border-color: var(--accent);
}

section {
    grid-row: auto;
    position: relative;
}
h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--one);
}
h2 {
    font-size: 43px;
    line-height: 1.1;
    color: var(--one);
}
        /* =========================================================
           COMMON
        ========================================================= */

.container,
.container-fluid,
.container-xxl,
.container-xl,
.container-lg,
.container-md,
.container-sm {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container-sm, .container {
    max-width: 540px;
  }
}
@media (min-width: 768px) {
  .container-md, .container-sm, .container {
    max-width: 720px;
  }
}
@media (min-width: 992px) {
  .container-lg, .container-md, .container-sm, .container {
    max-width: 720px; /*960px;*/
  }
}
@media (min-width: 1200px) {
  .container-xl, .container-lg, .container-md, .container-sm, .container {
    max-width: 720px; /*1320px;*/
  }
}
@media (min-width: 1400px) {
  .container-xxl, .container-xl, .container-lg, .container-md, .container-sm, .container {
    max-width: 720px; /*1320px;*/
  }
}
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}
.row > * {
  box-sizing: border-box;
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

.col {
  flex: 1 0 0;
}



.btn {
    display: inline-block;
    padding: 8px 30px;
    background: var(--accent);
    border-radius: 4px;
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.5px;
}
        .btn:hover {
    background: var(--accent-dark);
        }


.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--accent-light);
    color: var(--one);
    padding: 15px 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    font-size: 14px;
}
.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}
.cookie-banner p {
  margin: 0;
}

.cookie-banner a {
    color: var(--two);
    text-decoration: underline;
}

.cookie-banner a:hover {
  text-decoration: none;
}

        /* =========================================================
           HEADER
        ========================================================= */

.header {
    position: relative;
	background: linear-gradient(90deg, 
    rgba(250, 246, 243, .68) 0%, 
    rgba(250, 246, 243, .28) 37%, 
    rgba(250, 246, 243, .88) 51%, 
    rgba(245, 235, 255, .68) 64%, 
    rgba(250, 246, 243, 0.7) 100%
  );
  background-size: 200% 100%;
  animation: moveSpot 8s ease-in-out infinite alternate;
}

@keyframes moveSpot {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 45px;
}

.logo img {
    height: 60px;
}

.logo svg {
    height: 55px;
    width: auto;
}

nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: 30px;
}

nav .menu {
    position: relative;
    display: flex;
    gap: 30px;
}
nav .menu-block {
    position: relative;
    border-bottom: 1px solid #ccc;
    padding: 16px 0px 6px;
    display: flex;
    gap: 15px;
}
nav .menu-block span {
    position: absolute;
    top: 0px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: bold;
    color: #9ab;
}
nav .menu-block i {
    width: 2px;
    display: inline-block;
    font-style: normal;
}
nav a {
    position: relative;
    font-size: 18px;
    font-weight: 500;
    transition: color var(--transition);
    line-height: 1;
}
nav .menu > a {
    margin-top: 15px;
}

nav a svg {
    height: 23px;
    line-height: 0;
    fill: var(--one);
}
        nav a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -7px;
            width: 0;
            height: 1px;
            background: var(--accent);
            transition: width var(--transition);
        }

        nav a:hover {
            color: var(--accent);
        }

        nav a:hover::after {
            width: 100%;
        }
        nav .menu > a::after {
            display: none;
		}
        nav .menu > a:hover {
            color: var(--accent);
            fill: var(--accent);
		}

        /*.header-actions {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .header .btn {
            min-height: 44px;
            padding: 0 19px;
            font-size: 13px;
        }*/

.p404-content {
    display: flex;
    flex-flow: column;
    gap: 8px;
    align-items: center;
    margin-top: 10vh;
}
.p404 figure {
    width: 180px;
    height: auto;
}
.p404 p {
    font-size: 18px;
    font-weight: 500;
}
.p404 a {
    margin-top: 60px;
}

        /* =========================================================
           HERO
        ========================================================= */

.hero {
    position: relative;
}
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 30px 0 90px;
}
.hero h3 {
    margin-bottom: 20px;
    color: var(--accent);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.hero h1 {
    max-width: 55%;
    font-size: 60px;
    line-height: 1.1;
    letter-spacing: -0.05em;
    font-weight: 600;
    color: #fff;
}
.hero h1+p {
    max-width: 55%;
    margin-top: 30px;
    color: var(--cream);
    font-size: 26px;
}
.hero-benefits {
    display: flex;
    gap: 15px;
    margin-top: 60px;
}
.hero-benefit {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 17px;
    line-height: 1.2;
    /* background: rgba(255,255,255,0.2); */
    padding: 4px;
    border-radius: 8px;
    /* backdrop-filter: blur(6px); */
    color: #fff;
    font-weight: 500;
}
.hero-benefit svg {
    width: 40px;
    height: 39px;
    fill: #fff;
}
.hero-benefit figure {
    height: auto;
    width: 55px;
}
.hero-matrix {
    position: absolute;
    z-index: 2;
    left: 70%;
    top: 50%;
    width: 300px;
    height: 300px;
    transform: translateY(-50%);
    /* opacity: .8; */
	  animation: wave-pulses 4.5s infinite ease-in-out;
}
.hero figure.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
}
.hero figure.hero-bg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero svg.wave {
    position: absolute;
    bottom: -30px;
    width: 100%;
    fill: var(--cream);
}

.hero-shd {
    position: absolute;
    top: 0;
    left: 0;
    width: 55%;
    height: 100%;
    backdrop-filter: blur(12px);
    -webkit-mask-image: linear-gradient(to right, 
    rgba(0, 0, 0, 1) 0%,     
    rgba(0, 0, 0, 0.7) 85%,  
    rgba(0, 0, 0, 0) 100%    
  );
    background: rgba(0,0,0,0.3);
}
.hero-btn {
    margin-top: 30px;
    display: flex;
    gap: 30px;
}

@keyframes wave-pulses {
  /* --- ВОЛНА 1 (0.0с - 0.5с) --- */
  0%   { opacity: 0.8; }
  20% { opacity: 1.0; } /* Пик на 0.25с (0.25 / 4.5 ≈ 5.5%) */
  40% { opacity: 0.8; } /* Конец на 0.5с (0.5 / 4.5 ≈ 11.1%) */

  /* --- ПАУЗА 3 СЕКУНДЫ (1.5с - 4.5с) --- */
  100%  { opacity: 0.8; } /* Удерживаем 0.8 до самого конца цикла */
}


/* =========================================================
   AUTH MODALS & BUTTONS (auth-...)
========================================================= */
.auth-actions-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 360px;
    margin: 30px auto;
}
.auth-btn-oauth {
    display: flex;
    align-items: center;
    /* justify-content: center; */
    gap: 10px;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    border: none;
    text-decoration: none;
}
.auth-btn-oauth:active {
    transform: scale(0.98);
}
.auth-btn-vk {
    background: #0077ff;
    color: #fff !important;
}
.auth-btn-vk:hover {
    background: #0066dc;
}
.auth-btn-yandex {
    background: #fc3f1d;
    color: #fff !important;
}
.auth-btn-yandex:hover {
    background: #e03212;
}
.auth-btn-email {
    background: var(--accent);
    color: #fff !important;
}
.auth-btn-email:hover {
    background: var(--accent-dark);
}

.auth-btn-oauth svg {
    height: 33px;
    width: 33px;
    fill: #fff;
}

/* Модальное окно */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}
.auth-modal-overlay.auth-active {
    display: flex;
}
.auth-modal-box {
    background: #ffffff;
    border-radius: 12px;
    width: 92%;
    max-width: 440px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    box-sizing: border-box;
}
.auth-modal-close {
    position: absolute;
    top: 15px;
    right: 18px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    border: none;
    background: transparent;
}
.auth-modal-close:hover {
    color: #333;
}
.auth-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--one);
    margin-bottom: 20px;
    text-align: center;
}
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.auth-form-row {
    position: relative;
    display: flex;
    gap: 8px;
}
.auth-input {
    width: 100%;
    box-sizing: border-box;
}
.auth-pass-group {
    position: relative;
    width: 100%;
}
.auth-pass-tools {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 4px;
}
.auth-icon-btn {
    background: #f0f0f3;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 11px;
    cursor: pointer;
    color: #555;
    line-height: 1.2;
}
.auth-icon-btn:hover {
    background: #e2e2e6;
}
.auth-inline-btn {
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 4px;
    background: #567;
    color: #fff;
    cursor: pointer;
    border: none;
}
.auth-inline-btn:disabled,
.auth-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.auth-btn-primary {
    background: var(--accent);
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
}
.auth-btn-primary:hover:not(:disabled) {
    background: var(--accent-dark);
}
.auth-link-btn {
    background: transparent;
    border: none;
    color: var(--accent);
    text-decoration: underline;
    font-size: 13px;
    cursor: pointer;
    align-self: flex-start;
    padding: 0;
}
.auth-link-btn:hover {
    color: var(--accent-dark);
}
.auth-status-msg {
    display: none;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 12px;
}
.auth-status-error {
    background: #ffe8e8;
    color: #d63031;
    border: 1px solid #fab1a0;
}
.auth-status-success {
    background: #e8f8f5;
    color: #00b894;
    border: 1px solid #55efc4;
}





/* =========================================================
   FEEDBACK FORM (/my/feedback/)
========================================================= */
.feedback-section {
    padding: 60px 0 90px;
    background: #fff;
    flex-grow: 1;
}

.feedback-wrap {
    max-width: 620px;
    margin: 0 auto;
    position: relative;
}

.feedback-intro {
    margin-top: 10px;
    margin-bottom: 30px;
    font-size: 16px;
    color: var(--muted);
}

.feedback-form-block {
    background: #fff;
    border: 1px solid #ebe5e1;
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow);
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feedback-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feedback-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--one);
}

.feedback-input,
.feedback-textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d1d1d6;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 15px;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.feedback-input:focus,
.feedback-textarea:focus {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 2px var(--accent-light);
    outline: none;
}

.feedback-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.feedback-captcha-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-top: 10px;
    border-top: 1px solid #ebe5e1;
    flex-wrap: wrap;
}

.feedback-captcha-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feedback-captcha-row .captcha-field {
    flex: 0 0 110px;
}

.feedback-captcha-hint {
    font-size: 12px;
    color: var(--muted);
    max-width: 200px;
    line-height: 1.3;
}

.feedback-submit-btn {
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    margin-left: auto;
}

.feedback-submit-btn:disabled {
    background: #c7c7cc;
    cursor: not-allowed;
    box-shadow: none;
}

.feedback-error-msg {
    display: none;
    padding: 12px 16px;
    border-radius: 6px;
    background: #ffe8e8;
    color: #d63031;
    border: 1px solid #fab1a0;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Блок успешной отправки */
.feedback-success {
    display: none;
    text-align: center;
    padding: 50px 30px;
    background: #fff;
    border: 1px solid #55efc4;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.feedback-success-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background: #e8f8f5;
    color: #00b894;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.feedback-success h2 {
    font-size: 26px;
    margin-bottom: 10px;
    color: var(--one);
}

.feedback-success p {
    font-size: 16px;
    color: var(--two);
    margin-bottom: 25px;
}

.feedback-success-btn {
    display: inline-block;
}


/*******************************************/

        .card {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 24px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.3);
        }

        h1 { margin: 0 0 8px; font-size: 24px; text-align: center; }
        .subtitle { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }

        .controls { display: flex; gap: 10px; flex-wrap: wrap; }
        
        button {
            padding: 10px 18px;
            font-size: 14px;
            font-weight: 600;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: opacity 0.2s, transform 0.1s;
        }
        button:active { transform: scale(0.98); }
        button:disabled { opacity: 0.4; cursor: not-allowed; }

        .btn-record { background: #10b981; color: #fff; }
        .btn-stop { background: #ef4444; color: #fff; }
        .btn-action { background: var(--accent); color: #fff; width: 100%; margin-top: 12px; }
        .btn-action:hover:not(:disabled) { background: var(--accent-hover); }
        .btn-secondary { background: #374151; color: #fff; }

        textarea {
            width: 100%;
            box-sizing: border-box;
            background: #11131a;
            border: 1px solid var(--border);
            border-radius: 8px;
            color: var(--text);
            padding: 12px;
            font-size: 15px;
            resize: vertical;
            min-height: 90px;
            outline: none;
        }
        textarea:focus { border-color: var(--accent); }

        canvas {
            width: 100%;
            height: 90px;
            background: #11131a;
            border-radius: 8px;
            margin-top: 10px;
        }

        #status { font-size: 13px; color: var(--text-muted); margin-top: 10px; min-height: 18px; }

        .settings-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 13px;
            color: var(--text-muted);
            margin-top: 8px;
        }

        .result-box {
            background: #11131a;
            border-radius: 8px;
            padding: 16px;
            border-left: 3px solid var(--accent);
            white-space: pre-wrap;
            line-height: 1.6;
            font-size: 15px;
        }

        .tts-bar {
            display: flex;
            gap: 10px;
            margin-top: 15px;
            align-items: center;
            flex-wrap: wrap;
        }

        select {
            background: #1f2330;
            color: var(--text);
            border: 1px solid var(--border);
            padding: 9px 12px;
            border-radius: 8px;
            outline: none;
            font-size: 14px;
        }


/**************************************/

